Skip to content

feat: simple markdown#17131

Merged
wackerow merged 8 commits into
page-developer-appsfrom
simple-markdown
Feb 3, 2026
Merged

feat: simple markdown#17131
wackerow merged 8 commits into
page-developer-appsfrom
simple-markdown

Conversation

@wackerow
Copy link
Copy Markdown
Member

@wackerow wackerow commented Jan 21, 2026

Extends page-developer-apps branch

Description

  • add simple markdown parser
    • For use with in-page markdown content parsing, not full pages with front matter
    • Simplifies use of headers to bold paragraphs
    • Accepts optional component overrides
  • add stripMarkdown helper util
    • Removes markdown syntax without parsing

For /developers/apps/ pages

  • parse descriptions for markdown in app modal

Fixes:

image

To this:

image
  • use stripMarkdown on app card descriptions

Fixes:

image

To this:

image

wackerow and others added 4 commits January 21, 2026 08:52
- For use with in-page markdown content parsing, not full pages with front matter
- Simplifies use of headers to bold paragraphs
- Accepts optional component overrides

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Removes markdown syntax without parsing

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 21, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit d91ed58
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/697804e654fc7e0008f7fd9d
😎 Deploy Preview https://deploy-preview-17131.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 55 (🔴 down 1 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Jan 21, 2026
- Remove duplicated component definitions from renderSimple.tsx
- Allow extended md Paragraph with additional classes
- Update AppModalContents to pass overrides explicitly
Comment thread src/lib/utils/md.ts
* @param text - Text with markdown syntax
* @returns Plain text with markdown markers removed
*/
export function stripMarkdown(text: string): string {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pettinarip As an alternative to this, we could use remove-markdown (runtime dependency) which is what we use on the blog to clean up the preview text for the posts. It's fairly small and a bit more robust but also potentially overkill for what we need here. Let me know if you think we should switch.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trimmed this down to just compile basic markdown strings using our existing htmlElements as the default component styling. When consumed, we can pass custom overrides, which in this case for the App Modal I've just overridden the heading levels to prevent any semantic html issues, and hidden any potential img tags for simplicity.

@pettinarip Could also just move this inside compile.ts as well, and maybe rename to compileSimple (similar function to compile just without the locale/scope/slugArray handling, and doesn't deal with front matter).

Copy link
Copy Markdown
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wackerow wackerow merged commit c48a80e into page-developer-apps Feb 3, 2026
10 checks passed
@wackerow wackerow deleted the simple-markdown branch February 3, 2026 17:03
This was referenced Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants