Skip to content

How to apply baseUrl with a custom renderer? #2398

Answered by UziTech
james-moreno asked this question in Q&A
Discussion options

You must be logged in to vote

There is no way to edit the href of links entered as HTML (<a href=...) inside marked. Marked doesn't parse html blocks (per the spec) it just passes them to the renderer. The only way to do that would be to create a new renderer or tokenizer the way you are.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@james-moreno
Comment options

Comment options

You must be logged in to vote
1 reply
@james-moreno
Comment options

Comment options

You must be logged in to vote
1 reply
@james-moreno
Comment options

Answer selected by james-moreno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants