From b2f6858ff714bec302774be4a7dc42ae0c6f935c Mon Sep 17 00:00:00 2001 From: Nikolay Rozhkov Date: Thu, 29 Jun 2023 20:23:10 +0300 Subject: [PATCH] Prettier --- .../.vitepress/scripts/fetch-contributors.ts | 4 +- packages/mermaid/src/docs/syntax/sankey.md | 43 ++++++++++--------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/packages/mermaid/src/docs/.vitepress/scripts/fetch-contributors.ts b/packages/mermaid/src/docs/.vitepress/scripts/fetch-contributors.ts index a29ef3324..a810fc30f 100644 --- a/packages/mermaid/src/docs/.vitepress/scripts/fetch-contributors.ts +++ b/packages/mermaid/src/docs/.vitepress/scripts/fetch-contributors.ts @@ -28,7 +28,9 @@ async function fetchContributors() { console.log(`Fetched page ${page}`); page++; } while (data.length === 100); - } catch (e) { /* contributors fetching failure must not hinder docs development */ } + } catch (e) { + /* contributors fetching failure must not hinder docs development */ + } return collaborators.filter((name) => !name.includes('[bot]')); } diff --git a/packages/mermaid/src/docs/syntax/sankey.md b/packages/mermaid/src/docs/syntax/sankey.md index 8b13556a2..97806d725 100644 --- a/packages/mermaid/src/docs/syntax/sankey.md +++ b/packages/mermaid/src/docs/syntax/sankey.md @@ -159,8 +159,8 @@ UK land based bioenergy,Bio-conversion,182.01 Wave,Electricity grid,19.013 Wind,Electricity grid,289.366 ``` -::: +::: ## Syntax @@ -214,6 +214,7 @@ Pumped heat,"Heating and cooling, commercial",70.672 ``` ### Double quotes + If you need to have double quote, put a pair of them: ```mermaid-example @@ -236,28 +237,28 @@ Pumped heat,"Heating and cooling, ""commercial""",70.672 You can change graph layout by setting `nodeAlignment` to: -* `justify` -* `center` -* `left` -* `right` +- `justify` +- `center` +- `left` +- `right` And adjust coloring of the links by setting `linkColor` to one of those: -* `source` -* `target` -* `gradient` -* hex code of color, like `#a1a1a1` +- `source` +- `target` +- `gradient` +- hex code of color, like `#a1a1a1` ```html - -``` \ No newline at end of file + +```