Skip to content

Add rehype-lini to list of plugins - #209

Open
monfa-red wants to merge 1 commit into
rehypejs:mainfrom
monfa-red:add-rehype-lini
Open

monfa-red wants to merge 1 commit into
rehypejs:mainfrom
monfa-red:add-rehype-lini

Conversation

@monfa-red

Copy link
Copy Markdown

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything or linked relevant results below
  • I made sure the docs are up to date
  • I included tests (or that’s not needed)

Description of changes

Adds rehype-lini to the plugin list, after rehype-katex-notranslate.

It compiles ```lini code blocks (pre > code.language-lini) to inline SVG at build time, for the Lini diagram language (https://lini.rs). Similar to rehype-mermaidjs, except the compiler ships as WebAssembly, so it doesn't need a browser. It's a default export, uses the hast/vfile types and hast-util-to-string, walks the tree once and inserts hast elements directly, so it works under MDX. Compile errors show up as vfile messages with the line and column in the source document.

This came out of remarkjs/remark#1500. I'd submitted the remark version there and wooorm pointed out it's really a rehype plugin. The repo has the rehype-plugin topic and keyword.

@github-actions github-actions Bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Oct 13, 2026
@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9bc5528) to head (d288b6c).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #209   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          154       163    +9     
=========================================
+ Hits           154       163    +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤞 phase/open Post is being triaged manually

Development

Successfully merging this pull request may close these issues.

1 participant