You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unclear if this was the best solution for my problem, nor if this is is the appropriate place to discuss it, but I found myself scratching my head trying to get pelican-toc to play nicely with liquid_tags this afternoon-- particularly the Jupyter Notebook integration.
Specifically, when I'd render a post with the following
Title: Why I Switched to Python 3
Slug: why-i-switched-to-python-3
Tags: python, technical, tools, light
{% notebook workspace/notebooks/WhyISwitchedToPy3.ipynb cells[1:] %}
the post would consume my notebook, add a bunch of ¶ symbols on each header, then pelican-toc would pick it up and build
I forked and made a dumb little change that works well enough for my purposes, but I'm wondering if it'd be worth writing something more general on the off chance someone else runs into this.
Reason I'm coming here instead of liquid is because they're simply calling the default HTMLExporter class from the nbconvert library (1), which in turn has some pretty deeply-nested defaulting to actually insert the character (2).
Again, not terribly pressing. But would be interested in thoughts on this if anyone has them.
Cheers!
The text was updated successfully, but these errors were encountered:
Hey there,
I'm unclear if this was the best solution for my problem, nor if this is is the appropriate place to discuss it, but I found myself scratching my head trying to get
pelican-toc
to play nicely withliquid_tags
this afternoon-- particularly the Jupyter Notebook integration.Specifically, when I'd render a post with the following
the post would consume my notebook, add a bunch of ¶ symbols on each header, then
pelican-toc
would pick it up and buildI forked and made a dumb little change that works well enough for my purposes, but I'm wondering if it'd be worth writing something more general on the off chance someone else runs into this.
Reason I'm coming here instead of liquid is because they're simply calling the default
HTMLExporter
class from thenbconvert
library (1), which in turn has some pretty deeply-nested defaulting to actually insert the character (2).Again, not terribly pressing. But would be interested in thoughts on this if anyone has them.
Cheers!
The text was updated successfully, but these errors were encountered: