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
Code blocks not rendered correctly #279
Comments
I can reproduce, this is a valid issue in blackfriday, thanks for reporting. |
Found where the bug is. It's inside This should be (relatively) easy to fix now. |
It turned out to be more challenging because I discovered incidental issues that needed to be resolved first, and fixing this issue naively can cause a regression for performance (see 148) but there are no benchmarks to test for that. I'll have a PR soon that fixes this, along with some other changes. |
In first pass, there may not be a trailing newline after a fenced code block yet. Make newline optional in isFenceLine when calling fencedCodeBlock to detect the fenced code block it anyway. This is more complex, but it avoids creating temporary buffers or modifying input in order to maintain performance (see #148). Document and rename fencedCode to fencedCodeBlock. Add regression tests. Fixes #279.
Thanks for fixing this! I had the same problem. If you don't mind me asking how do you use this "v2" branch? Do you add /v2 somewhere in the import line of the .go file? |
@rain-1 No problem. To use v2, use the import path |
Forwardport changes from russross#280. Fixes russross#279.
cross-issue from gogs/gogs#3171
Test-case: https://gist.github.com/bkcsoft/dce1a2e16db28b46e1ce4c8df18caaba
The text was updated successfully, but these errors were encountered: