We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The baseUrl isn't added to the tag.
To Reproduce Steps to reproduce the behavior:
// marked configuration marked.setOptions({ renderer: new marked.Renderer(), highlight: function (code) { return require('highlight.js').highlightAuto(code).value; }, baseUrl: 'http://example.com/', pedantic: false, gfm: true, tables: true, breaks: false, sanitize: false, smartLists: true, smartypants: false, xhtml: false });
markdown content
<img src="static/cat.svg" width="200"> ![](static/cat.svg)
Real Output
<img src="static/cat.svg" width="200"> <p><img src="http://example.com/static/cat.svg" alt=""></p>
Expected behavior The baseUrl should be added to the tag.
baseUrl
<img src="http://example.com/static/cat.svg" width="200"> <p><img src="http://example.com/static/cat.svg" alt=""></p>
The text was updated successfully, but these errors were encountered:
baseUrl is only used in markdown links and images not raw html since raw HTML is used to get specific html into the output.
Sorry, something went wrong.
Thanks a lot, I try to avoid using raw HTML in my markdown 😄
No branches or pull requests
Describe the bug
The baseUrl isn't added to the tag.
To Reproduce
Steps to reproduce the behavior:
markdown content
Real Output
Expected behavior
The
baseUrl
should be added to the tag.The text was updated successfully, but these errors were encountered: