Skip to content

Allow attr_list quoted values to contain curly braces #1414

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

Merged
merged 9 commits into from
Mar 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add fenced_code test
  • Loading branch information
waylan committed Mar 8, 2024
commit 6201f6d4a6f21bf0505e41ebe54461f6d87b16b3
18 changes: 18 additions & 0 deletions tests/test_syntax/extensions/test_fenced_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,24 @@ def testFencedCodeEscapedAttrs(self):
extensions=['fenced_code', 'attr_list']
)

def testFencedCodeCurlyInAttrs(self):
self.assertMarkdownRenders(
self.dedent(
'''
``` { data-test="{}" }
# Some python code
```
'''
),
self.dedent(
'''
<pre><code data-test="{}"># Some python code
</code></pre>
'''
),
extensions=['fenced_code', 'attr_list']
)


class TestFencedCodeWithCodehilite(TestCase):

Expand Down