This commit is contained in:
parent
c0324c0bc2
commit
cbfa885984
42 changed files with 3701 additions and 547 deletions
32
posthtml-djot/lib/index.d.ts
vendored
Normal file
32
posthtml-djot/lib/index.d.ts
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
import type { ParseOptions } from '@djot/djot/types/parse';
|
||||
import type { HTMLRenderOptions } from '@djot/djot/types/html';
|
||||
|
||||
export type DjotConfig = {
|
||||
/**
|
||||
Path relative to which markdown files are imported.
|
||||
|
||||
@default './'
|
||||
*/
|
||||
root?: string;
|
||||
|
||||
/**
|
||||
Encoding for imported Markdown files.
|
||||
|
||||
@default 'utf8'
|
||||
*/
|
||||
encoding?: string;
|
||||
|
||||
/**
|
||||
Options to pass to the `djot` library.
|
||||
|
||||
@default {}
|
||||
*/
|
||||
djot?: ParseOptions;
|
||||
|
||||
/**
|
||||
Options to pass to the `djot` HTML renderer.
|
||||
|
||||
@default {}
|
||||
*/
|
||||
djot_html?: HTMLRenderOptions;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue