-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Support fenced code block in list. #5632
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
Comments
Why do not use marked? It should better than showdown. |
👍 @vilic Have you found a decent workaround for this in the meantime? |
@tomekr sadly no. |
I think this is showdownjs/showdown#208 and there's an easy solution. |
@jgillich I can get the work around you posted to work on http://showdownjs.github.io but not in Ghost. The best I've been able to manage is: 1. item one ```code 1 code 2 ``` 2. item two Which creates what looks like a code block broken in half over two lines: |
@JohnWestlund I believe the workaround doesn't used "fenced" code blocks, rather relies on the indentation to indicate a code block. e.g.: |
@kevinansfield yes, the indentation work but how do you use syntax highlight without fenced code blocks
|
How about this? Code blocks nested in blockquote are not rendered correctly. It should be a Take below as example:
This block is rendered to: <blockquote>
<p>Note:</p>
<p>Some code in blockquote.</p>
<p><code>javascript
function() {
consoel.log('hello world!');
}
</code></p>
</blockquote> The correct result should be: <blockquote>
<p>Note:</p>
<p>Some code in blockquote.</p>
<pre><code class="javascript language-javascript">function() {
consoel.log('hello world!');
}</code></pre>
</blockquote> The official demo of Showdown works well. Marked works well, too. So why do not use the official version of Showdown, the Ghost fork is out of date and bugly. |
I really wanna know when will this issue be fixed |
When will fenced code block be supported in Ghost? Have been waiting for this for a long long time |
It would be great if we can do something like this:
A list item with some code sample
The text was updated successfully, but these errors were encountered: