From f228804a041b55f747b7bac5c82da190eca868c8 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Wed, 10 Jun 2020 13:03:35 +0200 Subject: [PATCH] [docs] Always consider code as left-to-right --- docs/src/modules/components/MarkdownElement.js | 1 + docs/src/modules/utils/parseMarkdown.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/modules/components/MarkdownElement.js b/docs/src/modules/components/MarkdownElement.js index 020896553c8aaf..fe65bf878f45c0 100644 --- a/docs/src/modules/components/MarkdownElement.js +++ b/docs/src/modules/components/MarkdownElement.js @@ -27,6 +27,7 @@ const styles = (theme) => ({ }, // inline code '& code': { + direction: 'ltr', lineHeight: 1.4, display: 'inline-block', fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace', diff --git a/docs/src/modules/utils/parseMarkdown.js b/docs/src/modules/utils/parseMarkdown.js index 9761008f6c9cae..cb5e844f0320f2 100644 --- a/docs/src/modules/utils/parseMarkdown.js +++ b/docs/src/modules/utils/parseMarkdown.js @@ -165,7 +165,7 @@ export function prepareMarkdown(config) { ${headers.components .map( (component) => - `- [<${component} />](${rewriteUrlForNextExport(`/api/${kebabCase(component)}`)})`, + `- [\`<${component} />\`](${rewriteUrlForNextExport(`/api/${kebabCase(component)}`)})`, ) .join('\n')} `);