gregorias / anki-code-highlighter

Anki plugin for code syntax highlighting.
GNU Affero General Public License v3.0
55 stars 3 forks source link

how to change the default justify-content:center to default left or justify? #30

Closed Hosseingsd closed 1 year ago

Hosseingsd commented 1 year ago

By default, the box will be placed centered, and every time I add a code, I have to justify it manually. Is there any way to change the default to left it justified?

highlight code

gregorias commented 1 year ago

There's no way to do this right now, but I intend to add a config option for that within a few days. Thanks for letting me know.

gregorias commented 1 year ago

In https://github.com/gregorias/anki-code-highlighter/commit/4c059021e428f87d3cf226674bb28cab3af17e3b, I've added block-style config option that should do what you want. Setting it to `"display: flex;" will left justify code blocks.

Feel free to reopen if that doesn't work for you.