Get markdown to output <pre><code> #1063

Closed
Kwpolska opened this Issue Feb 21, 2014 · 4 comments

Comments

Projects
None yet
3 participants
Owner

Kwpolska commented Feb 21, 2014

It has some horrible code. We can easily fix it.

@Kwpolska Kwpolska added this to the v6.4.0 milestone Feb 21, 2014

@Kwpolska Kwpolska added the bug label Feb 21, 2014

Owner

ralsina commented Feb 26, 2014

I don't get it. You really want to fix markdown? Why is this a Nikola bug?

@ralsina ralsina modified the milestones: v6.5.0, v6.4.0 Feb 26, 2014

Owner

Kwpolska commented Feb 26, 2014

I wanted to fix output from Markdown by regexps — we actually are doing something to this effect right now. The Markdown folk would probably disagree.

Contributor

DBeath commented Feb 26, 2014

I had a look at this a couple of days ago. When used independently of Nikola, the Markdown module does output the correct code. I believe the issue may have something to do with using the codehilite extension with Markdown.

Contributor

DBeath commented Feb 26, 2014

Just tested removing codehilite from the MARKDOWN_EXTENSIONS setting in nikola.py, and the code formats properly. Adding codehilite back in breaks it again. This is running off a clean Nikola install and default blog settings (apart from adding .md to posts in conf.py).

With codehilite:

<div class="code"><pre><span class="kt">void</span> <span class="nf">loop</span><span class="p">()</span>
<span class="p">{</span>
    <span class="n">xbee</span><span class="p">.</span><span class="n">send</span><span class="p">(</span><span class="n">tx64</span><span class="p">);</span>
    <span class="n">delay</span><span class="p">(</span><span class="mi">50</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>

Without codehilite:

<pre><code>void loop()
{
    xbee.send(tx64);
    delay(50);
}
</code></pre>

@ralsina ralsina modified the milestones: v7.0.0, v6.5.0 Mar 22, 2014

@Kwpolska Kwpolska closed this in 6702a54 May 11, 2014

Kwpolska added a commit that referenced this issue May 11, 2014

Merge pull request #1281 from getnikola/fix-1063
fix #1063 -- get Markdown to output <pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment