-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yinquan
committed
May 25, 2024
1 parent
f548137
commit 015378d
Showing
10 changed files
with
71 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,4 +314,4 @@ onMounted(() => { | |
width: 1360px; | ||
height: 800px; | ||
} | ||
</style> | ||
</style>./presets/classicSetup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import classicMarkdownSyntax from "./presets/classicMarkdownSyntax" | ||
import classicSetup from "./presets/classicSetup" | ||
|
||
export { | ||
classicMarkdownSyntax | ||
classicSetup | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { | ||
markdownItPlugins, | ||
overlayScrollbars, | ||
math, | ||
customCodeBlockRenderer, | ||
defaultEditorTheme, | ||
defaultViewerTheme, | ||
tocSpy, | ||
syncScrollbars, | ||
highlightCodeBlocksInEditableArea | ||
} from '@smooth-markdown/core/plugins' | ||
import { MermaidRenderer, KatexRenderer, CodeMirrorRenderer } from '@smooth-markdown/core/renderers' | ||
import sup from 'markdown-it-sup' | ||
import sub from 'markdown-it-sub' | ||
import ins from 'markdown-it-ins' | ||
import br from 'markdown-it-br' | ||
import mark from 'markdown-it-mark' | ||
import deflist from 'markdown-it-deflist' | ||
import taskLists from 'markdown-it-task-lists' | ||
import footnote from 'markdown-it-footnote' | ||
import mialert from 'markdown-it-alert' | ||
|
||
const classicSetup = [ | ||
markdownItPlugins([ | ||
[ sup ], | ||
[ sub ], | ||
[ ins ], | ||
[ br ], | ||
[ mark ], | ||
[ deflist ], | ||
[ taskLists ], | ||
[ footnote ], | ||
[ mialert ] | ||
]), | ||
customCodeBlockRenderer({ | ||
math: [KatexRenderer], | ||
mermaid: [MermaidRenderer], | ||
default: [CodeMirrorRenderer] | ||
}), | ||
overlayScrollbars(), | ||
math(), | ||
defaultEditorTheme(), | ||
defaultViewerTheme(), | ||
tocSpy(), | ||
syncScrollbars(), | ||
highlightCodeBlocksInEditableArea() | ||
] | ||
|
||
export default classicSetup |