docusaurus/packages/docusaurus-utils/src
Sébastien Lorber 57806798c5
fix(v2): fix contentTitle issues when markdown h1 title contains code blocks (#4882)
* attempt to fix contentTitle issues when markdown h1 title contains inline code blocks

* mention hide_title frontmatter only prevents frontmatter.title from being added in the dom (not a markdown # title in content)

* alwayss insert MainHeading under the div.markdown container for consistency

* ensure MainHeading has no useless id

* revert https://github.com/facebook/docusaurus/pull/4859 as it's now useless: docMeta.title contains the text/frontmatter title in priority over the contentTitle

* fix docs test after revert

* improve markdownParser and fix tests

* fix docs tests

* markdownParser: restore option to remove contentTitle (mostly for blog plugin)

* use removeContentTitle for blog
2021-06-03 17:45:19 +02:00
..
__tests__ fix(v2): fix contentTitle issues when markdown h1 title contains code blocks (#4882) 2021-06-03 17:45:19 +02:00
codeTranslationsUtils.ts feat(v2): default theme translations: locale "pt" should load "pt-BR" translations (#4581) 2021-04-07 18:28:48 +02:00
escapePath.ts fix(v2): fix encoding of markdown image/file inline file-loaders (#4736) 2021-05-06 16:48:20 +02:00
index.ts refactor(v2): purify normalizeUrl (#4814) 2021-05-18 17:57:39 +02:00
markdownLinks.ts refactor(v2): merge linkify function used in blog and docs and align properties (#4402) 2021-03-12 15:11:08 +01:00
markdownParser.ts fix(v2): fix contentTitle issues when markdown h1 title contains code blocks (#4882) 2021-06-03 17:45:19 +02:00
posixPath.ts fix(v2): fix encoding of markdown image/file inline file-loaders (#4736) 2021-05-06 16:48:20 +02:00