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

Convert custom sequences to html #1605

Closed
tvv91 opened this issue Feb 20, 2020 · 1 comment
Closed

Convert custom sequences to html #1605

tvv91 opened this issue Feb 20, 2020 · 1 comment
Labels

Comments

@tvv91
Copy link

tvv91 commented Feb 20, 2020

It's a question. Sorry, but I don't know, does it's available to declare custom sequences that will be converting to html tags?
What I mean. For example we have input text

/This text is now italic./ * And this text is bold. *

Does it possible (and how if yes) bind "/" and "*" chars to < i > and < b > tags? Output must be:
This text is now italic. And this text is bold.?

@UziTech
Copy link
Member

UziTech commented Feb 20, 2020

You would have to parse the string before you send it to marked or in a render method.

You can see an example of how to do that here: #1538 (comment) or here: #1538 (comment)

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

No branches or pull requests

2 participants