mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-03 08:04:29 -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({
|
new EasyMDE({
|
||||||
direction: 'ltr',
|
direction: 'ltr',
|
||||||
})
|
});
|
||||||
|
|
||||||
new EasyMDE({
|
new EasyMDE({
|
||||||
direction: 'rtl',
|
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