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

Quarto: new parser #3677

Merged
merged 3 commits into from
Mar 27, 2023
Merged

Quarto: new parser #3677

merged 3 commits into from
Mar 27, 2023

Commits on Mar 25, 2023

  1. Markdown: extend the interface for sub parsers

    Add new methods, (* notifyCodeBlockLine) and
    (* notifyEndOfCodeBlock).
    
    These methods allows sub parsers to analyze inside code blocks.
    
    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    0ea228c View commit details
    Browse the repository at this point in the history
  2. RMarkdown: fill the "end:" field for chunklabel kind objects

    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    81b1d82 View commit details
    Browse the repository at this point in the history
  3. Quarto: new parser

    This parser is based on the RMarkdown parser.
    
    The way of extracting chunk labels is enhanced for Quarto.
    
    A. recognizing unexecuted blocks like
    
           ```{{python}}
           ...
           ```
       Quarto makes an anonymous tag for the code block.
    
    B. recognizing " label: " in code blocks like
    
           ```{python}
           #| label: optimization-techniques
           ...
           ```
       Quarto extracts "optimization-techniques" as a tag.
    
    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    94d623f View commit details
    Browse the repository at this point in the history