Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mogland-dev/mog-render-service
Markdown & Djot Render Service for Mog Core
https://github.com/mogland-dev/mog-render-service
Last synced: 7 days ago
JSON representation
Markdown & Djot Render Service for Mog Core
- Host: GitHub
- URL: https://github.com/mogland-dev/mog-render-service
- Owner: mogland-dev
- License: agpl-3.0
- Created: 2023-03-25T06:39:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-27T07:19:42.000Z (about 1 year ago)
- Last Synced: 2024-08-02T19:01:36.782Z (4 months ago)
- Language: TypeScript
- Size: 204 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @mogland-dev/mog-render-service
Markdown & Djot Render Service for Mog Core
## Features
- [x] Render Markdown to HTML
- [x] Render Djot to HTML
- [ ] Short Codes Support
- [x] [Text Macros Support](./src/functions/macros.md)## Events
You can refer to the content of [events.yaml](./events.yaml), create a new `events.yaml` file in the Mog Core running directory, and then add the corresponding events in it.
- `render.markdown.to.html` - Render Markdown to HTML
- Method: `POST`
- Body: YOUR MARKDOWN TEXT
- `render.djot.to.html` - Render Djot to HTML
- Method: `POST`
- Body: YOUR DJOT TEXT
- `render.from.server` - Render Text from Server
- Method: `GET`
- Query: `id` - The ID of the post or page
- Query: `type` - The type of the post or page, `post` or `page`## License
This project is licensed under the AGPLv3 license, and the secondary creation or derivative project using this project must also be open source.
## Author
mog-render-service © Wibus, Released under the AGPL-3.0 License.
> [Personal Website](http://iucky.cn/) · [Blog](https://blog.iucky.cn/) · GitHub [@wibus-wee](https://github.com/wibus-wee/) · Telegram [@wibus✪](https://t.me/wibus_wee)