Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom syntax rules #2061

Closed
Lete114 opened this issue May 19, 2021 · 2 comments
Closed

Custom syntax rules #2061

Lete114 opened this issue May 19, 2021 · 2 comments

Comments

@Lete114
Copy link

Lete114 commented May 19, 2021

I have a need for custom syntax rules such as

import marked from "marked";

marked(":[emoji]");
// output: <img src="https://xxxx.com/img/emoji.png" alt="emoji" />

// demo
// marked(":[emoji-demo]");
// output: <img src="https://xxxx.com/img/emoji-demo.png" alt="emoji-demo" />

Are there any good ideas? I've seen a lot of examples online of directly modifying the source code, but this is not what I want (too complicated).

@UziTech
Copy link
Member

UziTech commented May 19, 2021

We are working on a PR to add custom rules #2043.

@UziTech
Copy link
Member

UziTech commented Jun 15, 2021

This Should be available in v2.1.0

see Custom Extensions section in docs

@UziTech UziTech closed this as completed Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants