Bug: markdown renderer does not render inline or fenced code blocks #28
Labels
No labels
activitypub
actor
admin
ai-safety
article
articles
atproto
bug
cli
configuration
content
dev-environment
docker
enhancement
feature
federation
fediverse
forgejo
garage
health
how-to
logging
markdown
mastodon
media
navigation
opengraph
passkeys
preview
priority:medium
production
release
rendering
s3
settings
setup
status:active
status:done
status:inprogress
technical
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit.com#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Article markdown on slugkit.com dev renders inline code and fenced code blocks as literal backticks instead of semantic HTML.
Observed on local dev article:
http://localhost:3000/posts/slug-cli-initExamples:
renders as literal backticks in text instead of
<code>slug</code>.renders as a paragraph with
<br>line breaks instead of a<pre><code>block.DOM inspection showed
.post-contenthad no<code>or<pre>elements for the article content.Expected
Markdown rendering should support at least:
Scope
slug-cli-initarticle renders code examples correctly in local dev.Acceptance criteria
`slug`renders as<code>slug</code>.<pre><code>...</code></pre>or equivalent semantic HTML.bashare preserved as a safe class or metadata where practical.Synced from todu comment by @todu on 2026-06-27T21:56:09.150Z
Review update
erik/slugkit.com#29is open and reviewed.<code>and fenced<pre><code>.Synced from todu comment by @todu on 2026-06-27T23:45:50.272Z
PR update
PR
erik/slugkit.com#29was amended after review to use Tailwind Typography for markdown presentation.Added:
@tailwindcss/typographydev dependency.@plugin "@tailwindcss/typography"insrc/styles/tailwind.css.prose prose-gray ... dark:prose-inverton markdown content containers.pre, code { white-space: pre-wrap; }so code blocks scroll normally.Verification rerun:
npm run typechecknpm test -- --run src/routes/__tests__/public.test.tsnpm testnpm run build<code>slug</code>, fenced<pre><code class="language-bash">..., andproseclasses.Review result: approved. Waiting for explicit human merge approval.
Synced from todu comment by @todu on 2026-06-28T00:24:25.661Z
Closed
PR
erik/slugkit.com#29was reviewed, approved, merged, and localmainwas fast-forwarded toef7ab22.Acceptance criteria met:
<code>....<pre><code>....language-bash.prose,dark:prose-invert) instead of hand-rolled descendant styling.Verification completed before merge:
npm run typechecknpm test -- --run src/routes/__tests__/public.test.tsnpm testnpm run buildslug-cli-init.