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

Lines in code blocks are aligned to the center #273

Closed
attila-fazekas opened this issue Nov 12, 2023 · 2 comments
Closed

Lines in code blocks are aligned to the center #273

attila-fazekas opened this issue Nov 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@attila-fazekas
Copy link

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.

@attila-fazekas attila-fazekas added the bug Something isn't working label Nov 12, 2023
@agentlibre
Copy link

agentlibre commented Dec 2, 2023

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants