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

fenced code in blockquote #374

Closed
Sequoia opened this issue Oct 12, 2016 · 1 comment
Closed

fenced code in blockquote #374

Sequoia opened this issue Oct 12, 2016 · 1 comment
Assignees
Labels

Comments

@Sequoia
Copy link

Sequoia commented Oct 12, 2016

Header

Content
Here's some code:

function random(){
    return 5;
}

Expected

(this is github but basically I expect a <pre> tag in there somewhere)

<blockquote>
<h1>Header</h1>

<p>Content<br>
Here's some code:</p>

<div class="highlight highlight-source-js"><pre><span class="pl-k">function</span> <span class="pl-en">random</span>(){
    <span class="pl-k">return</span> <span class="pl-c1">5</span>;
}</pre></div>
</blockquote>

Actual

<blockquote>
  <h1 id="header">Header</h1>
  <p>Content
Here s some code:
<code>js
function random(){
    return 5;
}
</code></p>
</blockquote>
@gettalong gettalong self-assigned this Oct 12, 2016
@gettalong
Copy link
Owner

You have to make sure that you follow kramdown's syntax:

  • The problem you most likely have is that you need to use tildes for fenced code blocks with kramdown. Only the GFM flavour of kramdown supports the GFM style fenced code blocks with backticks.
  • Make sure that you use blank lines between block elements. I.e. before the fenced code block needs to be a blank line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants