Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with Paragraph Symbol? #15

Open
NapsterInBlue opened this issue May 2, 2018 · 0 comments
Open

Dealing with Paragraph Symbol? #15

NapsterInBlue opened this issue May 2, 2018 · 0 comments

Comments

@NapsterInBlue
Copy link

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 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

image

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant