docusaurus/packages/docusaurus-plugin-content-docs/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
client chore(v2): Fix more linter warnings (#4450) 2021-03-18 18:05:09 +01:00
markdown feat(v2): Webpack 5, PostCSS 8 (#4089) 2021-04-30 18:06:53 +02:00
theme/hooks chore(v2): TypeScript, use isolatedModules (#4790) 2021-05-14 15:36:55 +02:00
cli.ts fix(v2): allow relative sidebar path resolution in docs:version command (#4861) 2021-06-02 18:21:45 +02:00
constants.ts refactor(v2): docs plugin refactor (#3245) 2020-08-17 17:50:22 +02:00
docFrontMatter.ts feat(v2): improve DocFrontMatter schema validation (#4796) 2021-05-18 16:14:09 +02:00
docs.ts fix(v2): fix contentTitle issues when markdown h1 title contains code blocks (#4882) 2021-06-03 17:45:19 +02:00
globalData.ts feat(v2): doc navbar item type (#3539) 2020-10-07 14:42:24 +03:00
index.ts fix(v2): fix contentTitle issues when markdown h1 title contains code blocks (#4882) 2021-06-03 17:45:19 +02:00
lastUpdate.ts refactor(v2): docs plugin refactor (#3245) 2020-08-17 17:50:22 +02:00
numberPrefix.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
options.ts fix(v2): improve dx sidebar config, ability to have no sidebars file (#4775) 2021-05-18 18:27:46 +02:00
plugin-content-docs.d.ts fix(v2): fix contentTitle issues when markdown h1 title contains code blocks (#4882) 2021-06-03 17:45:19 +02:00
props.ts refactor(v2): remove sidebar_label filed from doc metadata file (#4863) 2021-06-02 16:52:41 +02:00
sidebarItemsGenerator.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
sidebars.ts fix(v2): allow relative sidebar path resolution in docs:version command (#4861) 2021-06-02 18:21:45 +02:00
slug.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
translations.ts feat(v2): core v2 i18n support + Docusaurus site Crowdin integration (#3325) 2020-11-26 12:16:46 +01:00
types.ts refactor(v2): remove sidebar_label filed from doc metadata file (#4863) 2021-06-02 16:52:41 +02:00
versions.ts fix(v2): allow relative sidebar path resolution in docs:version command (#4861) 2021-06-02 18:21:45 +02:00