themes/cards/missing/missing.md or /simple/simple.md are preferred for viewing in browser.
However, themes/cards/*/*-stripped.md files are quicker to view/copy code.
In the root folder you can npm run pandoc or npm run Pandoc-stripped.
Unfortunately Safari doesn't show the nice unicode icons (like ★) without -standalone flag. This is because Safari has latin1 formatting as standard over the more common UTF-8.
The non-stripped files add more "junk" to the HTML file;
This makes it a bit harder at-a-glance to grab our card data for Anki.
Compiled code.md or *-stripped.md are far nicer view/copy into our code block field.
Possible solutions
Best case scenario is to cut down the HTML code as much as possible.
[x] Go back to what we had before, and deal with the garbled output?
[x] Try and remove the header css from the HTML template header (link to main.css instead)
[x] Use the browser and inspect element each section to copy/paste ...
[x] Or just use your favourite text editor to preview once compiled.
Safari still defaults to (Western ISO Latin 1) charset
If Safari doesn't have the correct <meta> values, with content wrapped in a <body>, the unicode characters (stars etc) will be garbled (like the closed issue linked to above)
Unfortunately Safari doesn't show the nice unicode icons (like
★
) without-s
tandalone flag. This is because Safari haslatin1
formatting as standard over the more commonUTF-8
.code.md
or*-stripped.md
are far nicer view/copy into ourcode block
field.Possible solutions
Best case scenario is to cut down the HTML code as much as possible.
Go back to what we had before, and deal with the garbled output?main.css
instead)inspect element
each section to copy/paste ...Markdown options
H1
id
s from the output (especially if long headers)126
Why?
If Safari doesn't have the correct
<meta>
values, with content wrapped in a<body>
, the unicode characters (stars etc) will be garbled (like the closed issue linked to above)Seems like this is a known frustratingly annoyingly stupid Safari bug that can be changed in browser preferences, but might have to be fixed with the above method (not raw html without the wrapping)
Oh what fun it is to code for the web 🤬