[IPython-dev] ipython html notebook: markdown in math mode and backslashes
Thu Aug 23 11:41:57 CDT 2012
> What's wrong with fixing the Markdown processor as I proposed?
Nothing at all - markdown rendering absolutely has to be fixed, either with
an appropriate hook in the converter.js, or wrapped around handing it off
It's a bit weird that they're using Pagedown for this, because it's mostly
> used for live previews, not rendering.
We don't want there to be any server communication involved in markdown
On Thu, Aug 23, 2012 at 8:13 AM, Aron Ahmadia <email@example.com> wrote:
> I feel like a jerk, I just checked to see if this problem shows up on our
> own gitit+pagedown live renderer, and the same bug is present! We use
> pandoc to do the final render, which is probably why I hadn't noticed it
> The StackExchange guys do some special parsing before they hand their code
> off to the PageDown parser, you can see it here:
> This is probably going to be the most familiar syntax for people used to
> LaTex and willing to work with Markdown for their outer formatting.
> Digging into the ipython source, the Markdown.converter is initialized in
> notebookmain.js then utilized in the textcell.js markdown render function.
> I don't see any special parsing done for handling the math symbols. I
> think the render function in textcell.js would be the right place to add
> the math delimiter strip/replace hooks.
> If you guys are interested, I can see about getting the SE
> mathjax-editing-new.js code licensed for redistribution, the SE guys are
> pretty hip to this kind of thing so I don't expect it to be a problem.
Yes, absolutely! If they have already solved the problem, then let's use
an existing and proven solution.
> On Thu, Aug 23, 2012 at 3:29 PM, Aron Ahmadia <firstname.lastname@example.org> wrote:
>> It's a bit weird that they're using Pagedown for this, because it's
>> mostly used for live previews, not rendering. Something must be
>> misconfigured, because Pagedown+MathJax is a pretty standard setup. I'm
>> digging into the code now.
>> On Thu, Aug 23, 2012 at 3:15 PM, Thomas Kluyver <email@example.com> wrote:
>>> On 23 August 2012 15:13, Aron Ahmadia <firstname.lastname@example.org> wrote:
>>> > Okay, if the notebook is using python-markdown, it might be as simple
>>> > installing this extension:
>>> Unfortunately it's not. All the markdown processing happens in the
>>> IPython-dev mailing list
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev