forked from OSQA/osqa
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Syntax highlighting with fenced-code-blocks is broken #897
Comments
After some investigation, I found the following issues:
|
bendavis78
added a commit
to BoldIdeaInc/askbot-devel
that referenced
this issue
Oct 26, 2021
I wasn't able to find an easy solution to server-side rendering, but was able to implement it in my own fork: BoldIdeaInc@04e6422 (note: this completely replaces client-side rendering, not sure what other side effects it may have) I don't plan on submitting a PR for that change, as I think it involves more of a design discussion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want the following markdown code to work:
I've added a custom
ASKBOT_MARKDOWN_CLASS
to load fenced-code-blocks extension:When writing the question with the above markdown, it does not show the preview correctly:
When I submit the question, it does render correctly on the first load:
However, when I refresh the page, the code loses newlines (and the syntax colors are oddly different):
The text was updated successfully, but these errors were encountered: