feat: markdown -> html and then display in editor

This commit is contained in:
Pihkaal
2024-09-13 13:51:18 +02:00
parent d2ae84846e
commit 8a209ede07
7 changed files with 106 additions and 6 deletions

25
pnpm-lock.yaml generated
View File

@@ -36,6 +36,9 @@ importers:
'@types/react-dom':
specifier: 18.2.18
version: 18.2.18
'@types/showdown':
specifier: ^2.0.6
version: 2.0.6
'@typescript-eslint/eslint-plugin':
specifier: 6.18.1
version: 6.18.1(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3)
@@ -75,6 +78,9 @@ importers:
sass:
specifier: 1.70.0
version: 1.70.0
showdown:
specifier: ^2.1.0
version: 2.1.0
tailwindcss:
specifier: 3.4.1
version: 3.4.1
@@ -558,6 +564,9 @@ packages:
'@types/semver@7.5.8':
resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==}
'@types/showdown@2.0.6':
resolution: {integrity: sha512-pTvD/0CIeqe4x23+YJWlX2gArHa8G0J0Oh6GKaVXV7TAeickpkkZiNOgFcFcmLQ5lB/K0qBJL1FtRYltBfbGCQ==}
'@typescript-eslint/eslint-plugin@6.18.1':
resolution: {integrity: sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -790,6 +799,10 @@ packages:
resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
engines: {node: '>= 6'}
commander@9.5.0:
resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}
engines: {node: ^12.20.0 || >=14}
concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
@@ -1781,6 +1794,10 @@ packages:
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
engines: {node: '>=8'}
showdown@2.1.0:
resolution: {integrity: sha512-/6NVYu4U819R2pUIk79n67SYgJHWCce0a5xTP979WbNp0FL9MN1I1QK662IDU1b6JzKTvmhgI7T7JYIxBi3kMQ==}
hasBin: true
side-channel@1.0.6:
resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==}
engines: {node: '>= 0.4'}
@@ -2395,6 +2412,8 @@ snapshots:
'@types/semver@7.5.8': {}
'@types/showdown@2.0.6': {}
'@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3)':
dependencies:
'@eslint-community/regexpp': 4.11.0
@@ -2682,6 +2701,8 @@ snapshots:
commander@4.1.1: {}
commander@9.5.0: {}
concat-map@0.0.1: {}
cross-spawn@7.0.3:
@@ -3828,6 +3849,10 @@ snapshots:
shebang-regex@3.0.0: {}
showdown@2.1.0:
dependencies:
commander: 9.5.0
side-channel@1.0.6:
dependencies:
call-bind: 1.0.7