Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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](ここを書き換えたい)
- Host: GitHub
- URL: https://github.com/yumetodo/markdown_img_url_editor
- Owner: yumetodo
- License: bsl-1.0
- Created: 2019-02-10T04:54:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-28T06:31:27.000Z (6 months ago)
- Last Synced: 2025-01-21T00:51:44.465Z (4 days ago)
- Topics: markdown, markdown-parser
- Language: TypeScript
- Homepage:
- Size: 1.33 MB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)