anki icon indicating copy to clipboard operation
anki copied to clipboard

Someday compile `skylighting.less` from a `json` file?

Open badlydrawnrob opened this issue 1 year ago • 0 comments

  1. Look through the compiled CSS that comes with the base html template
  2. Check for things like span.smallcaps and div.columns — can it be safely deleted?[^1]
  3. How difficult is it to reason about different colour themes?
  4. Make sure at least the two default skylighting.less themes are correct

This may or may not happen someday in the future. Feel free to try yourself and submit a pull request in the meantime! Pandoc generates the CSS for the Skylighting code highlighter with a json file.

  • #94
  • #127
  • #73
  • #67 (the json file for Pandoc Skylighting)
  • #54
  • #52

Skylighting — could do better

This article outlines some problems with Skylighting Below are examples of Pandoc's highlighting (1) This is compared with Visual Studio Code (2)

Function <span class="fu"> is too generic

Screenshot 2024-01-30 at 21 37 17 Screenshot 2024-01-30 at 21 38 17

Parentheses aren't styled (no <span> wrapper)

Screenshot 2024-02-01 at 14 41 27

[^1]: Some things like the .task-list could come in very handy (and may need extending #40)

badlydrawnrob avatar Jan 13 '24 21:01 badlydrawnrob