Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yumetodo/markdown_img_url_editor

![alt](ここを書き換えたい)
https://github.com/yumetodo/markdown_img_url_editor

markdown markdown-parser

Last synced: about 20 hours ago
JSON representation

![alt](ここを書き換えたい)

Awesome Lists containing this project

README

        

# markdown_img_url_editor

[![NPM](https://nodei.co/npm/markdown_img_url_editor.png)](https://nodei.co/npm/markdown_img_url_editor/)

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyumetodo%2Fmarkdown_img_url_editor.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyumetodo%2Fmarkdown_img_url_editor?ref=badge_shield) [![CircleCI](https://circleci.com/gh/yumetodo/markdown_img_url_editor/tree/master.svg?style=svg)](https://circleci.com/gh/yumetodo/markdown_img_url_editor/tree/master) [![Known Vulnerabilities](https://snyk.io/test/github/{username}/{repo}/badge.svg)](https://snyk.io/test/github/{username}/{repo})

`![alt](I want to edit here!)`

```typescript
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](https://crates.io/crates/pulldown-cmark)(rust libary) to parse.

## License

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyumetodo%2Fmarkdown_img_url_editor.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyumetodo%2Fmarkdown_img_url_editor?ref=badge_large)