Render Table of Contents in the Content Editor
Problem to solve
GFM supports syntax for quickly creating a Table of Contents that gets rendered as a list on a page, but the Content Editor doesn't recognize this syntax.
Proposal
Render a placeholder for the table of contents in the Content Editor.
NOTE: We shouldn't render the entire table of contents as a list in the editor. It is sufficient to style the [[TOC]]
text in a way that indicates that it will be replaced with a Table of Contents after it is rendered.
Question
Could we replace the [[TOC]]
string here and display something else? Like a box with the text Table of contents
inside?
Edited by Eric Schurter