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

Make the number of backticks in codeblocks configurable #18

Merged
merged 1 commit into from
Aug 2, 2020

Conversation

zacps
Copy link
Contributor

@zacps zacps commented Aug 2, 2020

This is a breaking change because it adds a member to the publicly
constructable Options struct.

Fixes #17

This is a breaking change because it adds a member to the publically
constructable `Options` struct.
@Byron
Copy link
Owner

Byron commented Aug 2, 2020

Thanks a lot for your contribution! I didn’t even know it’s flexible regarding the amount of backticks, but if it works for you, I am happy to merge. Will release a major version in a bit.

@Byron Byron merged commit c9267b5 into Byron:master Aug 2, 2020
@zacps
Copy link
Contributor Author

zacps commented Aug 2, 2020

The spec defines it as at least three backticks or tildes. Three backticks is the only thing I think I've seen in practise, but I left the default at four.

@Byron
Copy link
Owner

Byron commented Aug 2, 2020

I recall now that the reason for defaulting to four backticks is to support nesting reliably, even with the limited information the pulldown-cmark provides.

v5.0.0 was just released.

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.

Make code block backtick count configurable
2 participants