MSzturc / obsidian-advanced-slides

Create markdown-based reveal.js presentations in Obsidian
https://mszturc.github.io/obsidian-advanced-slides/
MIT License
939 stars 80 forks source link

Lines in code blocks are aligned to the center #273

Closed attila-fazekas closed 7 months ago

attila-fazekas commented 8 months ago

Describe the bug Lines in code blocks are aligned to the center: Screen Shot 2023-11-12 at 15 35 02

Samples to Reproduce Just copy-paste the example code block from here and remove the indentation on the last line (before the ```) as described here

Expected behavior I would expect the code in code blocks to always be aligned to the left: image

I have tried many examples, but none of them worked. I am sort of new to Obsidian and might be overlooking something.

agentlibre commented 7 months ago

You can specifiy the command you want to apply for the block if you write the command next to it.

Example (changing font-size + text-align):

::: block <!-- element style="font-size:37px; text-align:left;"-->

My math formulas

:::

You're welcome

attila-fazekas commented 7 months ago

Thanks! It's funny – I just launched Obsidian to try out your example, and all my code samples worked without touching anything. Closing this issue.