Skip to content

Commit 165674c

Browse files
authored
Merge pull request #128 from netfoundry/adjust-linter
fix wrapping for code ph
2 parents 9e957bd + ae4bf41 commit 165674c

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

docs-linter/.markdownlint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"MD033": false, // Inline HTML. Essential for Docusaurus features (tabs, admonitions, specialized formatting).
66
"MD034": false, // Bare URLs (e.g. https://example.com) without <brackets>. Common in quickstart guides.
77
"MD009": false, // Trailing spaces. Flags every invisible space at the end of a line. Huge noise source.
8-
"MD060": false // Table column style. Flags tables that aren't perfectly ASCII-aligned in the raw text file. Purely visual.
8+
"MD060": false, // Table column style. Flags tables that aren't perfectly ASCII-aligned in the raw text file. Purely visual.
9+
"MD041": false // First line heading. Fires on every Docusaurus category index page (MDX imports before any heading).
910
}

docs-linter/.vale.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Microsoft.ComplexWords = NO
1616
Microsoft.Contractions = NO
1717
Microsoft.FirstPerson = NO
1818
Microsoft.HeadingPunctuation = NO
19+
Microsoft.Dashes = NO

packages/docusaurus-theme/css/legacy.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,12 @@ code {
19891989
white-space: pre;
19901990
}
19911991

1992+
/* Inline code must wrap; the rule above forces white-space: pre, which overflows the page on mobile. */
1993+
:not(pre) > code {
1994+
white-space: normal;
1995+
overflow-wrap: anywhere;
1996+
}
1997+
19921998
code p {
19931999
}
19942000

0 commit comments

Comments
 (0)