From 8b98fd0a89aaa3686a1dbaf584a7d3adffb80ca6 Mon Sep 17 00:00:00 2001 From: Vlad Stirbu Date: Thu, 31 May 2018 08:40:50 +0300 Subject: [PATCH] fixed loop text style in sequence diagrams (fixed #41) --- CHANGELOG.md | 5 +++++ content-provider.js | 4 ++++ package.json | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 749a889..8bdfd94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 0.10.1 / 2018-05-31 + +* fixed loop text style in sequence diagrams +* updated mermaid 8.0.0-rc8 + # 0.10.0 / 2018-05-26 * added sphinx directive support diff --git a/content-provider.js b/content-provider.js index 2a6271f..99d8bd0 100644 --- a/content-provider.js +++ b/content-provider.js @@ -52,6 +52,10 @@ module.exports = class MermaidDocumentContentProvider { config.startOnLoad = true; config.theme = style; + if (style == 'dark') { + config.themeCSS = '.loopText tspan { fill: inherit; }'; + } + mermaid.initialize(config); ` diff --git a/package.json b/package.json index 12150a5..0979e34 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-mermaid-preview", "displayName": "Mermaid Preview", "description": "Previews Mermaid diagrams in Visual Studio Code", - "version": "0.10.0", + "version": "0.10.1", "publisher": "vstirbu", "bugs": { "url": "https://github.com/vstirbu/vscode-mermaid-preview/issues" @@ -76,7 +76,7 @@ "file-url": "^2.0.2", "font-awesome": "^4.7.0", "lodash": "^4.17.4", - "mermaid": "^7.1.0" + "mermaid": "^8.0.0-rc.8" }, "devDependencies": { "vscode": "^1.1.14"