Skip to content
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
merged 31 commits into from
Aug 2, 2023

Conversation

ZedThree
Copy link
Member

Replacement for #410

Fixes #223

  • Replace sub_notes with a markdown extension, based on admonitions
  • Handles nesting the note inside other blocks, as well as blocks inside the note
  • Also enables custom titles

Maarten Braakhekke and others added 30 commits April 12, 2022 11:29
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".
* 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
@ZedThree ZedThree merged commit 8c75fc3 into master Aug 2, 2023
9 checks passed
@ZedThree ZedThree deleted the admonition-extension branch August 2, 2023 13:31
@ZedThree ZedThree added this to the v7.0.0 milestone Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@todo in unordered list breaks html
2 participants