Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RichSteele opened this issue Nov 13, 2021 · 3 comments

Comments

@RichSteele
Copy link

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
Copy link
Collaborator

deathau commented Nov 14, 2021

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
Copy link
Author

Perfect, confirmed that this snippet works.

@marcjulianschwarz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants