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 Text Size #20

Closed
PhyoeKo opened this issue Oct 1, 2021 · 3 comments
Closed

Custom Text Size #20

PhyoeKo opened this issue Oct 1, 2021 · 3 comments

Comments

@PhyoeKo
Copy link

PhyoeKo commented Oct 1, 2021

How can I set custom text site in HTML data?

@jarontai
Copy link
Owner

Markdown don't support custom font size, maybe you can insert custom html tag like:

<font size="1"> your text </font>

@PhyoeKo
Copy link
Author

PhyoeKo commented Oct 11, 2021

I am using dynamic html (data comes from API).

@jarontai
Copy link
Owner

Maybe you should try building a custom rule to hadle this.

Build a function to filter your target tags first, then build the replacement function to produce the text size html.

If your html is complex, you should family with html. Html2md's Node class is just a wrapper of html's dom node.

Custom rule example: custom-rules

@jarontai jarontai closed this as completed Nov 8, 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