Add NeuraPress vendor entry point for editor (#783)
This commit is contained in:
parent
e76285d810
commit
390e9be8ff
8
dashboard/vendor/neurapress/src/index.ts
vendored
Normal file
8
dashboard/vendor/neurapress/src/index.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { convertToWechat, defaultOptions } from './lib/markdown'
|
||||||
|
import { getExampleContent } from './lib/utils/loadExampleContent'
|
||||||
|
|
||||||
|
export const neurapressSample = getExampleContent()
|
||||||
|
|
||||||
|
export function renderMarkdown(markdown: string): string {
|
||||||
|
return convertToWechat(markdown, defaultOptions)
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user