It appears that QtWebKit does support Latex. I found this link 
<https://gist.github.com/mitya57/3497662> which shows some latex being 
rendered (didn't test it myself). You'd have to convert the MD math or 
mathml to Latex.

Another option if Qt doesn't support this outright then there is a chance 
to hijack the ipython QtConsole latex printer for the job. I've had some 
dealings with the latex printer and it's less fancy than masquerades to be, 
it simply generates a PNG file of the desired latex and displays it in the 
QtConsole. So since it's only generating a PNG file then I think it's 
likely it could be used to generate a PNG for Leo as well. Again, you'd 
also have convert the MD math or mathml to Latex first.

Anyway, despite it sounding like an awesome feature for view rendered, it 
sounds like a project.

On Thursday, April 14, 2016 at 6:32:41 AM UTC-4, Edward K. Ream wrote:
>
>
>
> On Wed, Apr 13, 2016 at 9:56 PM, <[email protected] <javascript:>> wrote:
>
>> For example there is node :
>>
>> @language md
>>
>> $a^2 = b^2 + c^2$
>>
>>
>> then I can see the math in viewr
>> ​endered panel.
>>
>
> ​Interesting question.  First, you must enable viewrendered3.py to have 
> any chance.  ​
>  
> ​When I put the above in the body text, I see this in the vr pane:
>
> $a^2 = b^2 + c^2$
>
> ​This indicates that the underlying QWebPage widget understands the syntax 
> in some sense.
>
> Googling "markdown math" yields this page:
> https://github.com/cben/mathdown/wiki/math-in-markdown
> It doesn't look like the support is here.
>
> Googling "QWebView math" yields this page:
> https://bugreports.qt.io/browse/QTBUG-45462
> So it doesn't look like there is support for mathml.
>
> Anyone know of other ways to render math in a QWebPage?
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to