-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9159 from quarto-dev/feature/escape-pandoc-ast
Feature: `pandoc-native` and `pandoc-json` rawblock and rawinline elements
- Loading branch information
Showing
6 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
format: html | ||
key-good: "`Str \"path-to-directory-with--two-dashes/file\"`{=pandoc-native}" | ||
key-bad: path-to-directory-with--two-dashes/file | ||
_quarto: | ||
tests: | ||
html: | ||
ensureFileRegexMatches: | ||
- ["--"] | ||
- ["–"] | ||
--- | ||
|
||
Hello {{< meta key-good >}}. (This would fail with `{{{< meta key-bad >}}}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
format: html | ||
_quarto: | ||
tests: | ||
html: | ||
ensureFileRegexMatches: | ||
- ["--"] | ||
- ["–"] | ||
--- | ||
|
||
(The JSON syntax is decidedly more verbose and not as nice, and really intended to be used by machine-generated markdown.) | ||
|
||
Here is a string that shouldn't be escaped: `{"pandoc-api-version":[1,23,1],"meta":{},"blocks":[{"t":"Plain","c":[{"t":"Str","c":"do--not--escape--this"}]}]}`{=pandoc-json}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
format: html | ||
_quarto: | ||
tests: | ||
html: | ||
ensureFileRegexMatches: | ||
- ["--"] | ||
- ["–"] | ||
--- | ||
|
||
Here is a string that shouldn't be escaped: `Str "do--not--escape--this"`{=pandoc-native}. |