cooklang / cooklang-obsidian

Edit and display CookLang recipes in Obsidian
MIT License
204 stars 16 forks source link

Style feature request: change Step headings to simple numbered list or paragraphs #4

Open RichSteele opened 2 years ago

RichSteele commented 2 years ago

Instead of the Step 1, Step 2, etc. headings I would prefer a simple numbered list. Actually, I prefer no numbers, just paragraphs. Can an option be added to control the step style?

deathau commented 2 years ago

You can style (or hide) it yourself using a CSS snippet for now, but I'll keep this open and consider adding some more default options for style. To achieve what you want with no headings or numbers, just paragraphs, use this CSS Snippet:

body .workspace-leaf-content[data-type=cook] ol.method > li::before { content: ""; }

(just save it in a css file — for example, cooklang-no-step-headings.css — in your snippets folder: <your vault>/.obisidian/snippets and turn it on in Obsidian's appearance settings.

RichSteele commented 2 years ago

Perfect, confirmed that this snippet works.

marcjulianschwarz commented 2 years ago

I like this idea, maybe some sort of template system or just more options in the settings could be possible?

For example: