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

Mermaid %%init{ ... }%% does not work #5291

Closed
nanoant opened this issue Jun 10, 2022 · 2 comments
Closed

Mermaid %%init{ ... }%% does not work #5291

nanoant opened this issue Jun 10, 2022 · 2 comments

Comments

@nanoant
Copy link

nanoant commented Jun 10, 2022

Describe the bug
Typora Mermaid block ignore `%%init{ ... }%% clauses which prevents graph customization. This customization was introduced in v8.7.0 (2020)

To Reproduce
Use following Markdown block:

~~~mermaid
%%{init: { "theme": "neutral", "themeVariables": { "fontSize": "32px", "fontFamily": "Times" } } }%%
flowchart LR
 A-->B
~~~

Typora shows graph with no customizations:
image

Expected behavior
Mermaid Live editor shows customizations properly:
image

Desktop (please complete the following information):

  • OS: Windows 10 and macOS 12.4

Typora Version
1.3.3-dev (also latest stable)

Additional context
I suspect this may be related with Mermaid customizations code using --mermaid CSS rules in Typora user.base.css.

@abnerlee
Copy link
Contributor

put into #1661

@abnerlee
Copy link
Contributor

abnerlee commented Sep 6, 2022

fixed in 1.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants