Skip to content
Snippets Groups Projects
Commit abd40083 authored by insert's avatar insert
Browse files

Update Markdown.

parent d0b8c6be
Branches
No related merge requests found
......@@ -22,4 +22,12 @@
opacity: 0.5;
margin-left: 24px;
}
a {
text-decoration: underline;
&:hover {
opacity: 0.8;
}
}
}
import MarkdownIt from "markdown-it";
import styles from './Markdown.module.scss';
import MarkdownItAnchor from "markdown-it-anchor";
export const md: MarkdownIt = MarkdownIt({ breaks: true, linkify: true });
export const md: MarkdownIt = MarkdownIt({ breaks: true, linkify: true })
.use(MarkdownItAnchor, { level: 3 });
interface Props {
content?: string;
......
Subproject commit 8cab30f62401102b501eef3c2f8c26230c611867
Subproject commit 587d133232e7c739cffd449c4e011d0519a0a6c4
......@@ -20,6 +20,7 @@
"@types/react": "^17.0.3",
"classnames": "^2.3.1",
"markdown-it": "^12.0.6",
"markdown-it-anchor": "^7.1.0",
"sass": "^1.32.10",
"styled-components": "^5.2.3",
"typescript": "^4.2.4"
......
......@@ -1274,6 +1274,11 @@ make-dir@^3.0.2:
dependencies:
semver "^6.0.0"
markdown-it-anchor@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-7.1.0.tgz#30fb21497bf59e83ff4d1ddc052d821962e2489e"
integrity sha512-loQggrwsIkkP7TOrESvmYkV2ikbQNNKhHcWyqC7/C2CmfHl1tkUizJJU8C5aGgg7J6oXVQJx17gk7i47tNn/lQ==
markdown-it@^12.0.6:
version "12.0.6"
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.0.6.tgz#adcc8e5fe020af292ccbdf161fe84f1961516138"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment