docusaurus/v1/lib/core
Fienny Angelina a1d36be61c fix: make referenced links work with code block tabs (#1249)
* Fix bug Code block tabs broke the referenced links

- The reason is that the previous Codeblock implementation separates
the tabs, the markdown before tabs, and the markdown after tabs into
separate Remarkable component, thus they don't share information
regarding the reference link
- To solve this, change the Doc implementation so that one Doc
have only one Remarkable component by transforming the codeblock
into html string and add it as part of the markdown, letting the
Remarkable take care of the html string
- However, this approach made us need to ensure that there is no
newline in the codetab, otherwise, the formatting inside the
code will be broken. Thus, I replace every newline inside the
code tag with a br tag

Fix #1215

* Fix prettier
2019-02-26 08:56:30 -08:00
..
__tests__ feat: add last contributor to each document (#980) 2018-10-18 00:59:16 -07:00
nav fix: change sidebar chevron icon to use svg (#1211) 2019-01-28 22:03:11 -08:00
anchors.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogPageLayout.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogPost.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogPostLayout.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogSidebar.js fix: change subcategory format (#1026) 2018-10-10 08:33:20 -07:00
CodeTabsMarkdownBlock.js Add copyright header to CodeTabsMarkdownBlock.js 2019-01-25 13:42:47 -08:00
CompLibrary.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Container.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Doc.js fix: make referenced links work with code block tabs (#1249) 2019-02-26 08:56:30 -08:00
DocsLayout.js feat: use 'sidebar_label' instead of 'title' in prev/next buttons (#1122) 2018-11-22 18:36:05 +08:00
DocsSidebar.js fix: translated pages missing left TOC (#1119) 2018-11-20 16:36:56 +08:00
GridBlock.js fix: missing default value for grid block content objects (#1186) 2019-01-16 00:31:27 -08:00
Head.js feat: code block tab (#1063) 2019-01-23 21:48:01 -08:00
MarkdownBlock.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Redirect.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Remarkable.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
renderMarkdown.js fix: warn unsupported languages by prismjs (#1107) 2018-11-12 18:39:33 +08:00
Site.js fix: use clean url for og:url when cleanUrl is true (#1242) 2019-02-21 12:24:31 -08:00
toc.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
toSlug.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
unindent.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
utils.js feat: add last contributor to each document (#980) 2018-10-18 00:59:16 -07:00