Skip to content

Note about preserving data in HTML transformation #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rawnsley
Copy link

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

Added a note about how to transform Markdown directives to HTML. It took me some searching to find remark-directive-rehype and it feels like adding ids classes and attributes to HTML output is an important use case for this library; possibly even the primary use case.

@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 Apr 15, 2025
@wooorm
Copy link
Member

wooorm commented Apr 15, 2025

it feels like adding ids classes and attributes to HTML output is an important use case for this library

That seems like the Use example?

I am not sure how much this adds compared to the existing examples/

Perhaps this plugin can go in “Related”?

Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e1027d1) to head (185b5c7).
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #23   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           40        40           
=========================================
  Hits            40        40           

☔ View full report in Codecov by Sentry.
📢 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.

@rawnsley
Copy link
Author

@wooorm Moved to "Related" as suggested. Regarding how much it adds: I think an example of how to transform to HTML without writing your own custom transformer is valuable.

@wooorm
Copy link
Member

wooorm commented Apr 15, 2025

It is quite intentional that unified pushes people to make plugins, learn about ASTs!

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.

2 participants