Skip to content

Commit

Permalink
[docs] Always consider code as left-to-right
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 10, 2020
1 parent e251b07 commit f228804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/modules/components/MarkdownElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/utils/parseMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function prepareMarkdown(config) {
${headers.components
.map(
(component) =>
`- [<${component} />](${rewriteUrlForNextExport(`/api/${kebabCase(component)}`)})`,
`- [\`<${component} />\`](${rewriteUrlForNextExport(`/api/${kebabCase(component)}`)})`,
)
.join('\n')}
`);
Expand Down

0 comments on commit f228804

Please sign in to comment.