Custom version of Quartz for my Japanese Grammar (JPG) project
Go to file
Théo Marchal d63e5ae6a7 Squashed 'custom/convert-usage/' changes from 89c8624..bbefbc5
bbefbc5 Added usage
8be4d39 Fixed an issue with character encoding

git-subtree-dir: custom/convert-usage
git-subtree-split: bbefbc5dd202ca299e1760f6934ace79ba320499
2024-04-07 23:13:27 +02:00
examples Squashed 'custom/convert-usage/' changes from 89c8624..bbefbc5 2024-04-07 23:13:27 +02:00
obsidian-snippets Squashed 'custom/convert-usage/' content from commit 89c8624 2024-04-06 18:34:02 +02:00
program Squashed 'custom/convert-usage/' changes from 89c8624..bbefbc5 2024-04-07 23:13:27 +02:00
LICENSE Squashed 'custom/convert-usage/' content from commit 89c8624 2024-04-06 18:34:02 +02:00
README.md Squashed 'custom/convert-usage/' changes from 89c8624..bbefbc5 2024-04-07 23:13:27 +02:00
screenshot.png Squashed 'custom/convert-usage/' content from commit 89c8624 2024-04-06 18:34:02 +02:00

convert-usage

Obsidian snippet

For my Japanese Grammar (JPG) project, I have created a style for explanation on the usage of certain grammar points. There is no simple way to make it in Markdown, so I tried to make it with the least amount of HTML possible. You can find it in examples/sample.md. However, for it to work, you have to import a custom CSS snippet to Obsidian, which is located in obsidian-snippet/usage.css. But using it, you will have this kind of result:

Obsidian screenshot

convert-usage.py

In my Quartz rendering of my markdown data, I want this kind of data to be in a callout. However, it is not possible to combine HTML and Markdown in Obsidian. For that purpose, this script encapsulates it directly in HTML. To make it both compatible in Obsidian and Quartz, and to be still easy to write, it's done with this python script. This is probably super specific and will not be of use for anybody except me!

Usage

Usage: python3 convert-usage.py [root folder]

Note: Please be careful, this software applies modifications recursively!