jgm / djot

A light markup language
https://djot.net
MIT License
1.67k stars 43 forks source link

create cheetsheet.md #39

Closed uvtc closed 2 years ago

uvtc commented 2 years ago

First draft at a cheatsheet for djot.

uvtc commented 2 years ago

Argh. Hang on. Github's markdown doesn't support subscript and superscript, and won't pass through the highlighting.

uvtc commented 2 years ago

Github's md won't render the mark tag, and doesn't appear to allow a span with inline css either.

uvtc commented 2 years ago

@jgm , if you don't like the format of this cheatsheet, or the humor in the draft here, or if you'd rather write your own (possibly at a later date), no offense taken if you accept this PR then make massive changes, or if you'd rather not accept this PR at all. I'd just like to see a cheatsheet for djot.

jgm commented 2 years ago

I like the basic idea. I think it would be good to add some tooling, so that the examples are all converted by djot to HTML and put in columns, as in doc/syntax.html. (Then we'd also get correct output for highlighting, among other things.) (Retracting this suggestion.)

uvtc commented 2 years ago

Added a note that you can use tildes instead of backticks. Examples still use backticks (though I think it would look better to use tildes in the examples).