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

fix: handle code fences better #402

Merged
merged 1 commit into from
Mar 13, 2022
Merged

fix: handle code fences better #402

merged 1 commit into from
Mar 13, 2022

Conversation

zcysxy
Copy link
Contributor

@zcysxy zcysxy commented Feb 13, 2022

Markdown has two code fences syntaxes: multiple backticks and multiple tildes. It also supports nested code fences. For example

An admonition:

````ad-note

```git
+ print("hello")
- print("world")
```

~~~python
print("hello world")
~~~
````

This pull request makes the plugin support the more general Markdown code fences syntax.

support more general code fence syntax
@st3v3nmw st3v3nmw merged commit 7390905 into st3v3nmw:master Mar 13, 2022
@st3v3nmw
Copy link
Owner

Thanks!

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.

2 participants