remcohaszing / rehype-mermaid

A rehype plugin to render mermaid diagrams
MIT License
80 stars 8 forks source link

Support responsive dark mode #9

Closed remcohaszing closed 9 months ago

remcohaszing commented 9 months ago

This is only supported for the img-png and img-svg strategies. Dark mode is supported using a responsive <picture> element.

Closes #6

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0792706) 100.00% compared to head (05eb014) 100.00%.

:exclamation: Current head 05eb014 differs from pull request most recent head 0303003. Consider uploading reports for the commit 0303003 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #9 +/- ## ========================================== Coverage 100.00% 100.00% ========================================== Files 1 1 Lines 263 365 +102 Branches 41 51 +10 ========================================== + Hits 263 365 +102 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

remcohaszing commented 9 months ago

@stereobooster would you be willing to review this? I’m mainly wondering if the test fixtures are as you expected.