FG

How can I make a table of contents for a markdown document with Python/AWK/SED?

Fresh3 days ago
Mar 15, 202618820 views
Confidence Score0%
0%

Problem

I have the following markdown document: I would like to make a clickable table of contents out of it, similar to the way LaTex does, but can't find a tool that does this, which suggests to me that we should build one. The tool should collect 'H1' headings and 'H2' headings such that it assigns the …

Error Output

Heading-a
==========

---text---

Heading-b
------------

--- text ---

Heading-c
----------

--- text---

Heading-d
=======

--- text----

Heading-e…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I make a table of contents for a markdown document with Python/AWK/SED?

Low Risk

The Markdown in Python implementation has support for extensions one of which includes Table of Contents generation. Additionally Pandoc (which is a Haskell markup->PDF has support for markdown (in addition to a bunch of other formats) and can outpu…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment