Skip to content

Commit cce65cd

Browse files
committed
Fix inline code blocks not wrapping across lines
1 parent 678512e commit cce65cd

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎_TODO.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ See comp images in Breadcrumbs component directory
149149

150150
- Inline code blocks are not wrapping. They're breaking to a new line. An example is in the "Scenario: CRD Sync Order Problem" section of `argocd-sync-failures-gitops-debugging-troubleshooting#specific-failure-scenarios`.
151151

152-
- Need to allow escaping a code fence inside a markdown code fence, see `src/content/articles/api-gateway-metrics-traces-logs-debugging/index.mdx` "Latency Spike Investigation" section and the demo article.
153-
154152
- I aliased 'promql' to 'go'. When a code fence using the alias is rendered with the language set to 'promql', it shows as 'go' incorrectly because of the alias. Also we need custom handling for all language names that are displayed: html should be uppercase, typescript as TypeScript, etc. Also we don't want all aliased names to show the alias - for example using the aliases 'ts', 'js', and 'md' would be better to show the full language names.
155153

154+
- We're getting random highlighting in code blocks, like the word "app" in teh first code block in `http://localhost:4321/deep-dive/argocd-sync-failures-gitops-debugging-troubleshooting#sync-waves-and-resource-ordering`
155+
156156
- The "go" language code block in `src/content/articles/api-versioning-deprecation-sunset-headers-migration/index.mdx` is not being combined with the "typescript", "python", and "ruby" tabbed code block. Same with "python" block in "### Admission Control Strategies" section of `src/content/articles/backpressure-load-shedding-admission-control-overload/index.mdx`, plus the line numbering is weird in the code block.
157157

158158
- The title for a code block with yaml as the language type in "Sync wave annotations controlling resource application order" section of `src/content/articles/argocd-sync-failures-gitops-debugging-troubleshooting/index.mdx` is not displaying, it's showing the YAML language tag instead of the title. Also, the word "app" is being highlighted for some reason in this code block.
@@ -181,6 +181,8 @@ See comp images in Breadcrumbs component directory
181181

182182
## Checklist
183183

184+
- You can click the anchor link that shows on headers to get a copy of the link. It should be that you can click anywhere in the header and copy the link.
185+
184186
- Need to make tables responsive on mobile
185187

186188
- Need to stop system from adding abbreviation html when used in headings, also the `abbr` presentation needs improved - right now it gives a question mark pointer and long delay to appear

‎src/lib/markdown/plugins/rehype-tailwind/index.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ export function rehypeTailwindClasses() {
226226
node.properties = node.properties || {}
227227
node.properties['className'] = ((node.properties['className'] as string[]) || []).concat([
228228
'bg-page-offset',
229-
'inline-block',
229+
'inline',
230+
'whitespace-normal',
231+
'break-normal',
230232
'font-mono',
231233
'mx-1',
232234
'px-2',

0 commit comments

Comments
 (0)