Skip to content

Commit

Permalink
Merge pull request mermaid-js#155 from mermaid-js/dependabot/npm_and_…
Browse files Browse the repository at this point in the history
…yarn/url-parse-1.5.1

Bump url-parse from 1.4.7 to 1.5.1
  • Loading branch information
sidharthv96 authored May 9, 2021
2 parents 489bb2d + cbcf45c commit 9f51a11
Show file tree
Hide file tree
Showing 167 changed files with 299,111 additions and 286,571 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '14'

- name: Checkout
uses: actions/checkout@v2
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ If you want to speed up the progress for mermaid-live-editor, join the slack cha

Edit, preview and share mermaid charts/diagrams.


## Features

- Edit and preview flowcharts, sequence diagrams, gantt diagrams in real time.
- Save the result as a svg
- Get a link to a viewer of the diagram so that you can share it with others.
- Get a link to edit the diagram so that someone else can tweak it and send a new link back


## Live demo

You can try out a live version [here](https://mermaid-js.github.io/mermaid-live-editor/).

## Setup

This project is set up using [Yarn](https://classic.yarnpkg.com/en/docs/getting-started):
[Volta](https://volta.sh) is used for managing node and yarn versions.

This project is set up using [Yarn](https://classic.yarnpkg.com/en/docs/getting-started). :

```
yarn install
Expand All @@ -43,7 +43,6 @@ registry=https://registry.npmjs.com/
//npm.pkg.github.com/:_authToken="XXXXXXXXX"
```


## Development

```
Expand All @@ -53,7 +52,6 @@ open http://localhost:8080

This app is created with Svelte + svelte-spa-router.


## Release

```
Expand Down
2 changes: 1 addition & 1 deletion bin/beta-release
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# git clone git@github.com:mermaid-js/docs.git
# git clone https://github.com/mermaid-js/docs.git
set -e
rm -rf docs/dist
rm -rf docs
yarn release
pushd .
if [ ! -d ../docs ]; then
Expand Down
217 changes: 217 additions & 0 deletions docs/1065.1065.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
(self.webpackChunkmermaid_live_editor =
self.webpackChunkmermaid_live_editor || []).push([
[1065],
{
71065: (e, n, s) => {
'use strict';
s.r(n), s.d(n, { conf: () => i, language: () => t });
var i = {
brackets: [
['{', '}'],
['[', ']'],
['(', ')'],
],
autoClosingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '<', close: '>', notIn: ['string'] },
],
surroundingPairs: [
{ open: '(', close: ')' },
{ open: '[', close: ']' },
{ open: '`', close: '`' },
],
folding: {
markers: {
start: new RegExp('^\\s*\x3c!--\\s*#?region\\b.*--\x3e'),
end: new RegExp('^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e'),
},
},
},
t = {
defaultToken: '',
tokenPostfix: '.rst',
control: /[\\`*_\[\]{}()#+\-\.!]/,
escapes: /\\(?:@control)/,
empty: [
'area',
'base',
'basefont',
'br',
'col',
'frame',
'hr',
'img',
'input',
'isindex',
'link',
'meta',
'param',
],
alphanumerics: /[A-Za-z0-9]/,
alphanumericsplus: /[A-Za-z0-9-_+:.]/,
simpleRefNameWithoutBq: /(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/,
simpleRefName: /(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/,
phrase: /@simpleRefName(?:\s@simpleRefName)*/,
citationName: /[A-Za-z][A-Za-z0-9-_.]*/,
blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,
precedingChars: /(?:[ -:/'"<([{])/,
followingChars: /(?:[ -.,:;!?/'")\]}>]|$)/,
punctuation: /(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,
tokenizer: {
root: [
[/^(@punctuation{3,}$){1,1}?/, 'keyword'],
[
/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,
'keyword',
],
[/([ ]::)\s*$/, 'keyword', '@blankLineOfLiteralBlocks'],
[/(::)\s*$/, 'keyword', '@blankLineOfLiteralBlocks'],
{ include: '@tables' },
{ include: '@explicitMarkupBlocks' },
{ include: '@inlineMarkup' },
],
explicitMarkupBlocks: [
{ include: '@citations' },
{ include: '@footnotes' },
[
/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,
[{ token: '', next: 'subsequentLines' }, 'keyword', '', ''],
],
[
/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,
[
{ token: '', next: 'hyperlinks' },
'',
'',
'string.link',
'',
'',
'string.link',
],
],
[
/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,
[
{ token: '', next: 'subsequentLines' },
'',
'',
'',
'string.link',
],
],
[/^(__\s+)(.+)/, ['', 'string.link']],
[
/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,
[
{ token: '', next: 'subsequentLines' },
'',
'string.link',
'',
'keyword',
'',
],
'@rawBlocks',
],
[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/, ['', 'string.link', '']],
[
/^(\.\.)([ ].*)$/,
[{ token: '', next: '@comments' }, 'comment'],
],
],
inlineMarkup: [
{ include: '@citationsReference' },
{ include: '@footnotesReference' },
[/(@simpleRefName)(_{1,2})/, ['string.link', '']],
[
/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,
['', 'string.link', '', 'string.link', '', '', ''],
],
[/\*\*([^\\*]|\*(?!\*))+\*\*/, 'strong'],
[/\*[^*]+\*/, 'emphasis'],
[/(``)((?:[^`]|\`(?!`))+)(``)/, ['', 'keyword', '']],
[/(__\s+)(.+)/, ['', 'keyword']],
[
/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,
['', 'keyword', '', '', ''],
],
[
/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,
['', '', '', 'keyword', ''],
],
[/(`)([^`]+)(`)/, ''],
[/(_`)(@phrase)(`)/, ['', 'string.link', '']],
],
citations: [
[
/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,
[
{ token: '', next: '@subsequentLines' },
'string.link',
'',
'',
],
],
],
citationsReference: [
[/(\[)(@citationName)(\]_)/, ['', 'string.link', '']],
],
footnotes: [
[
/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,
[{ token: '', next: '@subsequentLines' }, 'string.link', ''],
],
[
/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,
[
{ token: '', next: '@subsequentLines' },
'string.link',
'',
'',
],
],
[
/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,
[
{ token: '', next: '@subsequentLines' },
'string.link',
'',
'',
],
],
],
footnotesReference: [
[/(\[)([0-9]+)(\])(_)/, ['', 'string.link', '', '']],
[/(\[)(#@simpleRefName?)(\])(_)/, ['', 'string.link', '', '']],
[/(\[)(\*)(\])(_)/, ['', 'string.link', '', '']],
],
blankLineOfLiteralBlocks: [
[/^$/, '', '@subsequentLinesOfLiteralBlocks'],
[/^.*$/, '', '@pop'],
],
subsequentLinesOfLiteralBlocks: [
[/(@blockLiteralStart+)(.*)/, ['keyword', '']],
[/^(?!blockLiteralStart)/, '', '@popall'],
],
subsequentLines: [
[/^[\s]+.*/, ''],
[/^(?!\s)/, '', '@pop'],
],
hyperlinks: [
[/^[\s]+.*/, 'string.link'],
[/^(?!\s)/, '', '@pop'],
],
comments: [
[/^[\s]+.*/, 'comment'],
[/^(?!\s)/, '', '@pop'],
],
tables: [
[/\+-[+-]+/, 'keyword'],
[/\+=[+=]+/, 'keyword'],
],
},
};
},
},
]);
Loading

0 comments on commit 9f51a11

Please sign in to comment.