cooklang-obsidian icon indicating copy to clipboard operation
cooklang-obsidian copied to clipboard

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

Open RichSteele opened this issue 3 years ago • 3 comments

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?

RichSteele avatar Nov 13 '21 17:11 RichSteele

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.

deathau avatar Nov 14 '21 05:11 deathau

Perfect, confirmed that this snippet works.

RichSteele avatar Nov 14 '21 11:11 RichSteele

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

For example:

  • Steps: ## {n}. Step where {n} is a placeholder for the numbers (empty template would only show the paragraphs)
  • Other Headlines (Ingredients, cookware, etc.): # **{headline}** where {headline} is a placeholder for the different headlines
  • or even better, each headline on its own (that way people could even translate the headings to their native language), so you would for example have these settings:
    • Ingredients: # Zutaten
    • Cookware: # **Küchenutensilien**
    • etc.

marcjulianschwarz avatar Jan 03 '22 17:01 marcjulianschwarz