Add NeuraPress vendor entry point for editor (#783)
This commit is contained in:
parent
d769ef6aa8
commit
30742eb62d
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