Add link to Pelican PR #3512 for upstream TOC filtering
This commit is contained in:
parent
45a3a8df87
commit
c9b7ca264b
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ ReStructuredText automatically generates anchor links in section headings when a
|
|||
|
||||
To solve this, we created a Pelican plugin that provides a ``strip_anchors`` Jinja2 filter. This filter removes TOC divs and ``toc-backref`` anchor links from article summaries before they're rendered on the homepage.
|
||||
|
||||
**Update:** We submitted `Pull Request #3512 <https://github.com/getpelican/pelican/pull/3512>`_ to add this functionality directly to Pelican core. Once merged, this will work automatically without needing the plugin or template filter.
|
||||
|
||||
.. TODO: Remove lib/strip_toc_summary.py plugin and strip_anchors filter from index.html template when PR #3512 is merged into Pelican upstream.
|
||||
|
||||
**The Plugin**
|
||||
|
||||
The plugin (``lib/strip_toc_summary.py``) uses regex to strip problematic HTML:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue