From 6e6c4860d2dc3ff89b29878f196eda3e62d64486 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 23 Oct 2022 01:39:54 +0300 Subject: feat: add autolink literals via remark-gfm --- package.json | 1 + src/pages/[...path].tsx | 3 +- yarn.lock | 201 +++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 201 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 73b1546..fe6f347 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "react-markdown": "^8.0.3", "react-syntax-highlighter": "^15.5.0", "remark-gemoji": "^7.0.1", + "remark-gfm": "^3.0.1", "unist-util-visit-parents": "^5.1.1" }, "devDependencies": { diff --git a/src/pages/[...path].tsx b/src/pages/[...path].tsx index cf5db8c..06ad09d 100644 --- a/src/pages/[...path].tsx +++ b/src/pages/[...path].tsx @@ -8,6 +8,7 @@ import emojiPlugin from '../emojiPlugin'; import remarkGemoji from 'remark-gemoji'; import benzinConfig from '../config'; import Code from '../Code'; +import remarkGfm from 'remark-gfm'; const transformLinkUri = (uri: string): string => { return uri.match(/(.*)\.md/)?.[1] || uri; @@ -64,7 +65,7 @@ const Page: NextPage = ({ markdownSource, emojiFileNames }: any) => {