esm7 / obsidian-rtl

RTL support for Obsidian.md
MIT License
137 stars 11 forks source link

Inserting code blocks #40

Open OzAmoyal opened 1 year ago

OzAmoyal commented 1 year ago

When inserting a code block/admonition the RTL direction is kept and code is messed up, for example: image i fixed it by making every code block/admonition be LTR. This is the css file i added, please consider adding to the plugin:

.cm-s-obsidian .HyperMD-codeblock {
    direction:ltr;
  }

  .markdown-preview-view blockquote {
  direction:ltr;
  }
  /* for editor */
.cm-quote {
  direction: ltr;
  text-align: left;
}