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

Commits on Apr 12, 2022

  1. Add admonition.py.

    Taken from https://github.com/Python-Markdown/markdown/tree/master/markdown, commit 383de86c64101b8d14768d9a247c9efc97d703bd.
    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    a9be11f View commit details
    Browse the repository at this point in the history
  2. Rename admonition.py to md_extensions.py.

    Rationale: more markdown extensions will be added to this module later.
    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    f248ddb View commit details
    Browse the repository at this point in the history
  3. Format md_extensions.py with black.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    1c217ae View commit details
    Browse the repository at this point in the history
  4. md_extensions.py: fix imports.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    6a07eed View commit details
    Browse the repository at this point in the history
  5. Add preprocessor for admonitions.

    Preprocessor converts FORD syntax to markdown admonition syntax.
    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    8488c19 View commit details
    Browse the repository at this point in the history
  6. Modify admonition block processor to reproduce FORD admonitions.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    7cc8b69 View commit details
    Browse the repository at this point in the history
  7. Small fix in AdmonitionProcessor.

    Mistake prevented locating the sibling element unless the admonition type was "note".
    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    3402f09 View commit details
    Browse the repository at this point in the history
  8. Remove todo item in AdmonitionPreprocessor docstring.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    db48552 View commit details
    Browse the repository at this point in the history
  9. Add support for admonitions with text on the first line after the sta…

    …rt marker.
    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    bee5938 View commit details
    Browse the repository at this point in the history
  10. Add/improve comments and docstrings of AdmonitionPreprocessor.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    eeda054 View commit details
    Browse the repository at this point in the history
  11. Change order of methods of AdmonitionPreprocessor.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    222249f View commit details
    Browse the repository at this point in the history
  12. Refactor AdmonitionPreprocessor.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    cd33a2d View commit details
    Browse the repository at this point in the history
  13. Add support for admonitions with end marker embedded in line.

    E.g:
    some text @Endnote some more text
    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    2222e89 View commit details
    Browse the repository at this point in the history
  14. Add support for admonitions with text before start marker

    E.g:
    Some text @note Some more text.
    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    147483a View commit details
    Browse the repository at this point in the history
  15. Make sure that built-in admonition extension is deeregistered.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    2ec925e View commit details
    Browse the repository at this point in the history
  16. Add admonition extension to standard extensions included in FORD.

    Maarten Braakhekke committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    565f804 View commit details
    Browse the repository at this point in the history
  17. [skip ci] Apply black changes

    mbraakhekke authored and actions-user committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    8587b98 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Merge branch 'master' into markdown-extensions

    * 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
      ...
    ZedThree committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    0ef5bc6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4807c5c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e1d44b View commit details
    Browse the repository at this point in the history
  4. Fix issue with indentation in admonition preprocessor

    Also add tests
    
    Now should correctly handle nested blocks inside admonitions
    ZedThree committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    23dc67a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    145cd90 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6691b4a View commit details
    Browse the repository at this point in the history
  7. Add test for uppercase notes

    ZedThree committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    dc167f9 View commit details
    Browse the repository at this point in the history
  8. Fix support for @Endnote in middle of line

    either as immediately closing existing note, or text after @Endnote
    ZedThree committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    a92593b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    781426b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c54ec14 View commit details
    Browse the repository at this point in the history
  11. Subclass original admonition processor with slight changes

    Allows deleting a bunch of code, as well as being able to use CSS and
    title features from base class
    ZedThree committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    25a5542 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Configuration menu
    Copy the full SHA
    e98bd2b View commit details
    Browse the repository at this point in the history
  2. Expand docs for note boxes

    ZedThree committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    1b8968e View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Docs: Add missing image

    ZedThree committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    569ec07 View commit details
    Browse the repository at this point in the history