mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-02 23:54:28 -06:00
Add extra typing tests for previewRender
This commit is contained in:
parent
4a73c911d0
commit
84aafddd92
@ -215,8 +215,21 @@ new EasyMDE({
|
||||
|
||||
new EasyMDE({
|
||||
direction: 'ltr',
|
||||
})
|
||||
});
|
||||
|
||||
new EasyMDE({
|
||||
direction: 'rtl',
|
||||
})
|
||||
});
|
||||
|
||||
new EasyMDE({
|
||||
previewRender: (plainText: string) => {
|
||||
return '<pre>' + plainText + '</pre>';
|
||||
}
|
||||
});
|
||||
|
||||
new EasyMDE({
|
||||
previewRender: (plainText: string, preview) => {
|
||||
preview.innerHTML = '<pre>' + plainText + '</pre>';
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user