Skip to content

Add support for [TOC] as alias for [[_TOC_]] in Markdown

What does this MR do?

This MR adds support for the [TOC] tag as an alternative to [[_TOC_]] allowing more interoperability with other Markdown editors, as outlined in #14193 (closed).

Additionally, both tags (

and [[_TOC_]]) are made case insensitive (so and [_toc_] will work as well).

Screenshots or Screencasts (strongly suggested)

markdown source

becomes this:

markdown preview

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

As this is a backend change only, extensive cross-browser testing does not seem to be necessary.

Closes #14193 (closed)

Edited by Brett Walker

Merge request reports