Reading existing markdown should populate headers for the TOC #33
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Projects
Currently as of May 26th, 2020, on version 1.2.1, if I read an existing markdown file in and then generate a table of contents the table of contents is either blank or just contains new headers.
This makes it impossible to source an existing markdown file as a template, build off of it, and create an encompassing table of contents.
The underlying data store for the read markdown appears to be the generated text store with no attempt made to parse the underlying existing structures. One thought I had was perhaps as a compromise to avoid having to fully parse existing markdown, a regular expression could fire after reading existing markdown to at least ensure the TOC is correct?
The text was updated successfully, but these errors were encountered: