mProjectsCode / obsidian-shiki-plugin

MIT License
42 stars 6 forks source link

conflict with `Typst Renderer` plugin #2

Closed CatCodeMe closed 6 months ago

CatCodeMe commented 6 months ago

Describe the bug I use Typst Renderer plugin to render typst code . I find that's confict with obsidian-shiki-plugin

To Reproduce Steps to reproduce the behavior:

  1. test code
#import "@preview/badgery:0.1.1": *

#menu("Menu", "Sub-menu", "Sub-sub menu", "Action")
\```

Expected behavior

  1. I hope this plugin could support more config , like exclude to ignore these code-block like typst or another 'language' like mermaid?
  2. another question, I hope to support more config , like custom theme

Screenshots If applicable, add screenshots to help explain your problem.

image

Occurs on

Plugin version latest version

Additional context Add any other context about the problem here.

mProjectsCode commented 6 months ago
  1. I can add some exclude options
  2. the colors/theme is dependent on your obsidian theme. You can also override colors with a CSS snippet.
CatCodeMe commented 6 months ago
  1. I can add some exclude options
  2. the colors/theme is dependent on your obsidian theme. You can also override colors with a CSS snippet.

thanks for your awesome work. Theme option is that I found there are some predefine themes, like github-light, in expressive code site. But use css-snippet also works.

mProjectsCode commented 6 months ago

Yes, EC allows for different themes, but I wrote some custom logic that makes it take the colors of your Obsidian theme.

mProjectsCode commented 6 months ago

I just added settings to disable the plugin for certain languages.