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

markdown: parse fenced_code_attributes extension #445

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 17, 2024

  1. markdown: parse fenced_code_attributes extension

    Pandoc supports this extension: https://pandoc.org/MANUAL.html#extension-fenced_code_attributes
    ``` {#identifier .language attr="value"}
    
    ```
    
    And this:
    ``` language {#identifier attr="value"}
    ```
    
    Recognize them in the lexer. Try to limit the complexity of the regular
    expression by splitting off parsing of attributes into a separate 'parse'
    (otherwise we hit automata size limits in `ocamllex`).
    
    According to
    https://quarto.org/docs/authoring/markdown-basics.html#ordering-of-attributes
    the ordering has to be:
    * #identifiers
    * .classes
    * key-value attributes
    
    Signed-off-by: Edwin Török <edwin@etorok.net>
    edwintorok committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    6274fe3 View commit details
    Browse the repository at this point in the history