Add support for tables of contents in articles #1
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "lucidiot/tilde-wiki:toc-extension"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
In the #javapool article, ~m455 used vim-markdown-toc to add a nice little table of contents. This probably works with most Markdown flavors including Pandoc, but the Python Markdown package is pretty strict to the original Markdown spec (not even following CommonMark 😢) and does not add
id
attributes to titles, so clicking any link in this TOC will not work at all.This just adds the official TocExtension from the package so we can add
[TOC]
to any Markdown file and get that table of contents withid
attributes on titles.Sounds good, lucidiot!
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.