Skip to content

Commit

Permalink
feat: expose createMarkdownRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 7, 2021
1 parent 5a2e253 commit d54c7d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export * from './server'
export * from './build/build'
export * from './serve/serve'
export * from './config'
export * from './markdown/markdown'

export type { SiteData, HeadConfig, LocaleConfig } from '../../types/shared'
2 changes: 2 additions & 0 deletions src/node/markdown/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export interface MarkdownRenderer {
render: (src: string, env?: any) => { html: string; data: any }
}

export type { Header }

export const createMarkdownRenderer = (
srcDir: string,
options: MarkdownOptions = {}
Expand Down

0 comments on commit d54c7d8

Please sign in to comment.