Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Commit

Permalink
fix: highlighting markdown not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jun 9, 2022
1 parent 2b5a8a3 commit 692db2c
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 989 deletions.
982 changes: 23 additions & 959 deletions examples/nextjs/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"postinstall": "npm link ../../library/node_modules/react-dom ../../library/node_modules/react ../../library/"
},
"dependencies": {
"@lagoni/edavisualiser": "0.13.2",
"@lagoni/edavisualiser": "0.15.0",
"next": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/simple-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@asyncapi/parser": "^1.15.0",
"@lagoni/edavisualiser": "0.10.0",
"@lagoni/edavisualiser": "^0.15.0",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-router-dom": "^5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-react/src/social_media/System.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react';
import { SystemView } from '@lagoni/edavisualiser';
import { Menu } from './Menu';
import { Menu } from './menu';
import { apps } from './apps';
import '@asyncapi/parser/dist/bundle';

Expand Down
2 changes: 1 addition & 1 deletion examples/simple-react/src/social_media/application.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import { Menu } from './Menu';
import { Menu } from './menu';
import { useParams } from 'react-router-dom';
import { ApplicationFocusView } from '@lagoni/edavisualiser';
import { apps } from './apps';
Expand Down
18 changes: 9 additions & 9 deletions library/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"@asyncapi/parser": "^1.15.0",
"canvas": "^2.9.1",
"dompurify": "^2.3.8",
"highlight.js": "^10.7.2",
"marked": "^4.0.10",
"highlight.js": "^11.5.1",
"marked": "^4.0.16",
"react-flow-renderer": "9.6.9",
"tailwindcss": "^2.1.1"
},
Expand Down
16 changes: 1 addition & 15 deletions library/src/helpers/marked.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import { marked } from 'marked';

// @ts-ignore
import hljs from 'highlight.js/lib/core';

// @ts-ignore
import json from 'highlight.js/lib/languages/json';
hljs.registerLanguage('json', json);

// @ts-ignore
import yaml from 'highlight.js/lib/languages/yaml';
hljs.registerLanguage('yaml', yaml);

// @ts-ignore
import bash from 'highlight.js/lib/languages/bash';
hljs.registerLanguage('bash', bash);
import hljs from 'highlight.js';

const markedOptions: marked.MarkedOptions = {
langPrefix: 'hljs language-',
Expand Down

0 comments on commit 692db2c

Please sign in to comment.