Skip to content

Commit

Permalink
Markdown parser lib change, snarkdown instead of marked.
Browse files Browse the repository at this point in the history
  • Loading branch information
plesiecki committed Mar 9, 2022
1 parent 68ddc52 commit e3adf0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"immutable-class": "0.9.8",
"js-yaml": "3.13.1",
"lz-string": "1.4.4",
"marked": "4.0.10",
"moment-timezone": "0.5.27",
"node-spawn-server": "1.0.1",
"nopt": "4.0.1",
Expand All @@ -109,8 +108,8 @@
"@babel/preset-react": "7.16.7",
"@babel/preset-typescript": "7.16.7",
"@babel/runtime": "7.17.2",
"@statoscope/webpack-plugin": "5.20.1",
"@size-limit/preset-small-lib": "7.0.8",
"@statoscope/webpack-plugin": "5.20.1",
"@types/body-parser": "1.16.8",
"@types/chai": "4.2.7",
"@types/chai-datetime": "0.0.33",
Expand Down Expand Up @@ -181,6 +180,7 @@
"sass-loader": "6.0.7",
"sinon": "4.1.4",
"size-limit": "7.0.8",
"snarkdown": "2.0.0",
"source-map-loader": "0.2.3",
"start-server-and-test": "1.10.0",
"supertest": "3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/client/components/markdown-node/markdown-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
* limitations under the License.
*/

import { parse } from "marked";
import * as React from "react";
import snarkdown from "snarkdown";
import "./markdown-node.scss";

export interface MarkdownBubbleProps {
markdown: string;
}

function innerMarkdown(input: string): { __html: string } {
return { __html: parse(input) };
return { __html: snarkdown(input) };
}

export const MarkdownNode: React.SFC<MarkdownBubbleProps> = ({ markdown }) => {
Expand Down

0 comments on commit e3adf0e

Please sign in to comment.