[tw5] Re: [TW5] How to embed a font (using @font-face and data-url)

2023-02-27 Thread Jeremy Ruston
Hi Lin OneTwo, It isn't necessary to do the base64 encoding manually. Have a look at the font embedded in the "Startlight" theme that is accessed via the `<>` macro: https://github.com/Jermolene/TiddlyWiki5/blob/master/themes/tiddlywiki/starlight/styles.tid Best wishes Jeremy On Monday,

[tw5] Re: [TW5] How to embed a font (using @font-face and data-url)

2023-02-27 Thread Lin Onetwo
I encode it manually instead: 1. download the font file, for example, `FiraCode-VF.woff2` 2. `base64 '/Users/linonetwo/Downloads/Fira_Code_v6.2/woff2/FiraCode-VF.woff2' -o '/Users/linonetwo/Downloads/Fira_Code_v6.2/woff2/FiraCode-VF.woff2.base64.txt'` as said in

[tw5] Re: copy button in each code block

2023-02-27 Thread yasai ya
Sorry, it wasn't fixed at all, but finally I fixed the problem. param=<<__tx__>> ↓ param={{{ [<__tx__>trim[]] }}} Full code --- \define code(tx) table.mycodeblock { border: none; margin: 7px 0 11px; } table.mycodeblock pre { margin: 0; } table.mycodeblock td { border: none;