JozoVilcek / gitbook-plugin-mermaid

Apache License 2.0
126 stars 22 forks source link

Add mermaid configuration #22

Open ghost opened 8 years ago

ghost commented 8 years ago

There should be ways that we can modify config of mermaid.

http://knsv.github.io/mermaid/#configuration35

mermaid.sequenceConfig = {
    diagramMarginX:50,
    diagramMarginY:10,
    boxTextMargin:5,
    noteMargin:10,
    messageMargin:35,
    mirrorActors:true
};
JozoVilcek commented 8 years ago

Yes, I thought about it before, but had no time to work out propagation of settings from gitbook and use them in plugin internals. I will be happy If you care to draft a pull request for such feature.