jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
605 stars 63 forks source link

Update mermaid-processor.rb #71

Closed bayindir-mustafa closed 2 years ago

bayindir-mustafa commented 2 years ago

processor is searching for mermaid! it must be searching for mermaid without !

bayindir-mustafa commented 2 years ago

Hi @jeffreytse I did not notice the configuration based design, sorry for that. But as a remark github and other markdown editors that I used, uses name mermaid for rendering images. I could not get the purpose for using !. Best regards.

jeffreytse commented 2 years ago

Hi @bayindir-mustafa

If you want the behavior, you can config it by below code snippet:

# Add this to your _config.yml
jekyll-spaceship:
  mermaid-processor:
    mode: default  # mode value 'pre-fetch' for fetching image at building stage
    css:
      class: mermaid
    syntax:
      code: 'mermaid'   # Update here for the behavior
    custom: ['@startmermaid', '@endmermaid']
        config:
          theme: default
    src: https://mermaid.ink/svg/

Thanks & Regards

bayindir-mustafa commented 2 years ago

Hi @jeffreytse Thank you answer and this repo. Best Regards.