-
Notifications
You must be signed in to change notification settings - Fork 339
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 #8936 from quarto-dev/improve/auto-max-backticks
markdown - change markdown gen to automatically emit sufficiently-many : and `s
- Loading branch information
Showing
4 changed files
with
69 additions
and
19 deletions.
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,21 @@ | ||
--- | ||
title: "mermaid backtick test" | ||
keep-md: true | ||
_quarto: | ||
tests: | ||
html: | ||
ensureFileRegexMatches: | ||
- [] | ||
- ["<p>This would have been"] # it can't be in a paragraph, it should be inside a code cell. | ||
--- | ||
|
||
It's not important right now whether this syntax is correct for mermaid; | ||
the relevant aspect is that our pandoc codegen wasn't taking the | ||
inner number of backticks into account. This test checks for that. | ||
|
||
````{mermaid} | ||
%%| echo: true | ||
``` | ||
This would have been a problem. | ||
``` | ||
```` |