markdown_img_url_editor
v4.1.2
Published
![alt](I want to edit here)
Downloads
15
Readme
markdown_img_url_editor
![alt](I want to edit here!)
import { MarkdownImgUrlEditor } from "markdown_img_url_editor";
const markdownText = `hoge
![img](/path/to/file)
fuga`;
const markdownImgUrlEditor = await MarkdownImgUrlEditor.init(await text2.get(), (a, s) => {
//a: img
//s: /path/to/file
return () => s;
});
// do something
const replaced = markdownImgUrlEditor.replace();
We use pulldown-cmark(rust libary) to parse.