pelican-jupyter icon indicating copy to clipboard operation
pelican-jupyter copied to clipboard

Conflicts with typogrify

Open jboynyc opened this issue 9 years ago • 4 comments

I had set TYPOGRIFY = True in my pelicanconf.py only to find that it breaks some functionality of ipynb posts. Specifcally, typogrify applies <span> elements to parts of the inline CSS, which ends up breaking those styles as well as MathJax. That is probably a bug in typogrify, but I thought I'd point it out here.

Obviously the easiest way to fix the issue is to disable typogrify.

jboynyc avatar Aug 21 '15 15:08 jboynyc

Kinda tricky to fix for me since i don't use that plugin.

You can probably make it work with some extra CSS like I do for my theme: https://github.com/danielfrg/middle-theme/blob/master/templates/ipynb.css

danielfrg avatar Aug 21 '15 15:08 danielfrg

Yeah, sorry to even open a ticket about this. It's not something that you need to worry about fixing, I think. I just thought this conflict should be documented in some way, because it cost me a while to figure out what was going wrong. Maybe adding a brief note in the README would do it.

jboynyc avatar Aug 21 '15 15:08 jboynyc

Not a problem at all. I like to record this stuff in issues.

danielfrg avatar Aug 21 '15 16:08 danielfrg

Thanks for opening the ticket. Spent some time trying to figure out why my strings don't get colored red. I found the weird s inside color properties, but didn't know why.

Disabling Typogrify fixed it.

dan-tee avatar Feb 19 '16 14:02 dan-tee