Skip to content

Commit

Permalink
Fix README demo SVGs for dark mode
Browse files Browse the repository at this point in the history
Include <style> tag in SVGs containing 'prefers-color-scheme' media
query. Also include filter in <defs> tag, which inverts luminance, but
keeps hue and saturation/chroma approximately constant when dark mode is
enabled. Modify 'pandoc-svg-create-demo.js' to insert these components
automatically when a demo SVG is generated.
  • Loading branch information
rnwst committed Dec 30, 2022
1 parent 18c2692 commit 50bb6e2
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 9 deletions.
23 changes: 23 additions & 0 deletions README-files/demo-math.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 50bb6e2

Please sign in to comment.