-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle notes, etc. with MD admonitions (replaces #410) #540
Merged
Conversation
This file contains 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
Taken from https://github.com/Python-Markdown/markdown/tree/master/markdown, commit 383de86c64101b8d14768d9a247c9efc97d703bd.
Rationale: more markdown extensions will be added to this module later.
Preprocessor converts FORD syntax to markdown admonition syntax.
Mistake prevented locating the sibling element unless the admonition type was "note".
E.g: some text @Endnote some more text
E.g: Some text @note Some more text.
* master: (327 commits) Apply PR suggestions [skip ci] Apply black changes Relax version on pygments recognize associations and calls made within associations refactor call chain correlation Docs: Fix syntax highlighting in example Docs: Fix some formatting and reword section on Markdown Docs: Fix link Docs: Fix typo Docs: More consistent spelling of "metadata" Docs: Clarify that metadata in docstrings is always parsed fix issues with PR generic module procedures inherit attributs from their interface find used modules for interfaces add args from parent procedures and private vars from ancestor mods to all_vars fix issues with errors with module procedures when setting display: private and with chain calls in module procedures Ignore mypy errors from setuptools_scm Fix undefined variable error Add ruff config Add helper class for creating markdown reader ...
Also add tests Now should correctly handle nested blocks inside admonitions
either as immediately closing existing note, or text after @Endnote
Allows deleting a bunch of code, as well as being able to use CSS and title features from base class
3 tasks
1 task
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.
Replacement for #410
Fixes #223
sub_notes
with a markdown extension, based on admonitions