Open askmrsinh opened 5 years ago
I am using Hugo too, I think that's the problem: https://github.com/russross/blackfriday/blob/05f3235734ad95d0016f6a23902f06461fcf567a/block.go#L652
~~~syntax
will return (0, "")
,and it should be (0, "~~~")
+1. But this issue has already been reported in #484 and #526. An attempt to fix it seems to be done in #532. Can you review the PR and give it a comment, @fleeto?
I am working on a Hugo project that uses blackfriday internally to render its content. This is the nested list that I am using:
http.proxyHost
&&http.proxyPort
in files:wetter\WebContent\resources\includes\api.jsp
; line 24Fenced blocks within nested lists appear as inline code (when not preceded by empty new line) The above sample produces this:
The only way to get the code block to render properly is to add a new blank line before the fenced code (and further intent it) which gives this:
But this hack leads to another issue. The addition of the new line before the fence code in a list, surrounds the corresponding and all subsequent bullet contents in paragraph tags ie.
<li><p>...</p></li>
(even those which were earlier simply rendered as<li>...</li>
). Similar behaviour was also reported at https://github.com/gohugoio/hugo/issues/5291.This becomes prominent by the extra paragraph padding at the top level lists (2. Set API Keys...., 3. Optionally set Proxy.... ) in the screenshot above. In all likelihood, I can at least made things look consistent by adding some extra css like
However, this doesn't address the underlying issue directly:
Expected Output: