Merged
Conversation
Add optional 'markdown_header_ids' setting to build_settings.json that enables automatic generation of IDs for markdown headers. When enabled, the markdown2 'header-ids' extra is applied during HTML conversion. - Add markdown_header_ids field to SettingsDict TypedDict - Update MarkdownLoader to read and apply header-ids setting - Set default to true in project templates - Update both main and test build_settings.json files
Prepare for alpha release by updating version from 0.0.dev4 to 0.0.1a1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for an optional setting to enable or disable automatic generation of header IDs in markdown files. This allows users to control whether header elements in generated HTML will have unique IDs, which can be useful for linking and styling. The changes include updates to the settings schema, data loading logic, and project templates.
Markdown header ID support:
markdown_header_idsboolean field to theSettingsDicttype and incorporated its value into the markdown-to-HTML conversion process inDataLoader. If enabled, the"header-ids"extra is passed to the markdown renderer.build_settings.json) to include the newmarkdown_header_idsfield and documentation.Other changes:
0.0.dev4to0.0.1a1inpyproject.tomlto reflect the new feature addition.Optionalfromtypinginshodo_ssg/data_loader.py.