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

Feature: pandoc-native and pandoc-json rawblock and rawinline elements #9159

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

cscheid
Copy link
Collaborator

@cscheid cscheid commented Mar 21, 2024

Cf. our discussion in today's eng meeting.

Minimal self-describing test document that now passes the test suite:

---
format: html
_quarto:
  tests:
    html:
      ensureFileRegexMatches:
        - ["--"]
        - ["–"]
---

Here is a string that shouldn't be escaped: `Str "do--not--escape--this"`{=pandoc-native}.

This is useful as a mechanism for us to more easily circumvent Pandoc's Markdown parsing (see #9117 for a natural use case), and is also useful for third-party software libraries emitting markdown to be read by Quarto, since emitting Markdown robustly is quite hard to do in general.

@cscheid cscheid force-pushed the feature/escape-pandoc-ast branch from 6a3d543 to e8bae4c Compare March 21, 2024 23:12
@cscheid cscheid merged commit e8f3e60 into main Mar 21, 2024
6 checks passed
@cscheid cscheid deleted the feature/escape-pandoc-ast branch March 21, 2024 23:12
cderv added a commit that referenced this pull request Mar 27, 2024
this was introduced in #9159 and help solve case like this where we need to prevent pandoc from parsing as Markdown the metadata fields passed in the YAML file used with `metadata-file:`

For context about `--metadata-file` see https://pandoc.org/MANUAL.html#option--metadata-file
> Read metadata from the supplied YAML (or JSON) file. This option can be used with every input format, but string scalars in the metadata file will always be parsed as Markdown.
cderv added a commit that referenced this pull request Mar 27, 2024
this was introduced in #9159 and help solve case like this where we need to prevent pandoc from parsing as Markdown the metadata fields passed in the YAML file used with `metadata-file:`

For context about `--metadata-file` see https://pandoc.org/MANUAL.html#option--metadata-file
> Read metadata from the supplied YAML (or JSON) file. This option can be used with every input format, but string scalars in the metadata file will always be parsed as Markdown.
cderv added a commit that referenced this pull request Mar 27, 2024
this was introduced in #9159 and help solve case like this where we need to prevent pandoc from parsing as Markdown the metadata fields passed in the YAML file used with `metadata-file:`

For context about `--metadata-file` see https://pandoc.org/MANUAL.html#option--metadata-file
> Read metadata from the supplied YAML (or JSON) file. This option can be used with every input format, but string scalars in the metadata file will always be parsed as Markdown.
cderv added a commit that referenced this pull request Mar 27, 2024
this was introduced in #9159 and help solve case like this where we need to prevent pandoc from parsing as Markdown the metadata fields passed in the YAML file used with `metadata-file:`

For context about `--metadata-file` see https://pandoc.org/MANUAL.html#option--metadata-file
> Read metadata from the supplied YAML (or JSON) file. This option can be used with every input format, but string scalars in the metadata file will always be parsed as Markdown.
cderv added a commit that referenced this pull request Mar 28, 2024
this was introduced in #9159 and help solve case like this where we need to prevent pandoc from parsing as Markdown the metadata fields passed in the YAML file used with `metadata-file:`

For context about `--metadata-file` see https://pandoc.org/MANUAL.html#option--metadata-file
> Read metadata from the supplied YAML (or JSON) file. This option can be used with every input format, but string scalars in the metadata file will always be parsed as Markdown.
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.

1 participant