mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 13:59:54 +02:00
Compare commits
4 Commits
3395_fix_e
...
v9.1.7
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0c0468123f | ||
![]() |
50da58afe0 | ||
![]() |
0f56c9a85d | ||
![]() |
e5212c25f5 |
@@ -18,7 +18,7 @@
|
|||||||
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css"> -->
|
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css"> -->
|
||||||
<link rel="stylesheet" href="theme.css" />
|
<link rel="stylesheet" href="theme.css" />
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css">
|
||||||
<script src="//cdn.jsdelivr.net/npm/mermaid@9.1.6/dist/mermaid.min.js"></script>
|
<script src="//cdn.jsdelivr.net/npm/mermaid@9.1.7/dist/mermaid.min.js"></script>
|
||||||
<!-- <script src="http://localhost:9000/mermaid.js"></script> -->
|
<!-- <script src="http://localhost:9000/mermaid.js"></script> -->
|
||||||
<script>
|
<script>
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mermaid",
|
"name": "mermaid",
|
||||||
"version": "9.1.6",
|
"version": "9.1.7",
|
||||||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
|
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
|
||||||
"main": "dist/mermaid.min.js",
|
"main": "dist/mermaid.min.js",
|
||||||
"module": "dist/mermaid.esm.min.mjs",
|
"module": "dist/mermaid.esm.min.mjs",
|
||||||
|
@@ -92,7 +92,9 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
|||||||
if (modifyGraph) {
|
if (modifyGraph) {
|
||||||
let typeClass;
|
let typeClass;
|
||||||
let commitSymbolType =
|
let commitSymbolType =
|
||||||
typeof commit.customType !== 'undefined' ? commit.customType : commit.type;
|
typeof commit.customType !== 'undefined' && commit.customType !== ''
|
||||||
|
? commit.customType
|
||||||
|
: commit.type;
|
||||||
switch (commitSymbolType) {
|
switch (commitSymbolType) {
|
||||||
case commitType.NORMAL:
|
case commitType.NORMAL:
|
||||||
typeClass = 'commit-normal';
|
typeClass = 'commit-normal';
|
||||||
|
@@ -146,6 +146,10 @@ export const decodeEntities = function (text) {
|
|||||||
* @returns {any}
|
* @returns {any}
|
||||||
*/
|
*/
|
||||||
const render = function (id, _txt, cb, container) {
|
const render = function (id, _txt, cb, container) {
|
||||||
|
if (!hasLoadedDiagrams) {
|
||||||
|
addDiagrams();
|
||||||
|
hasLoadedDiagrams = true;
|
||||||
|
}
|
||||||
configApi.reset();
|
configApi.reset();
|
||||||
let txt = _txt.replace(/\r\n?/g, '\n'); // parser problems on CRLF ignore all CR and leave LF;;
|
let txt = _txt.replace(/\r\n?/g, '\n'); // parser problems on CRLF ignore all CR and leave LF;;
|
||||||
const graphInit = utils.detectInit(txt);
|
const graphInit = utils.detectInit(txt);
|
||||||
|
Reference in New Issue
Block a user