md-block icon indicating copy to clipboard operation
md-block copied to clipboard

A custom element for rendering stylable (light DOM) Markdown

Results 14 md-block issues
Sort by recently updated
recently updated
newest added

When I use `md-block`, it outputs a lot of warnings to console from the `marked` module. These are the warnings I get: 1. marked(): mangle parameter is enabled by default,...

I have a local copy of `marked.min.js` (and its dependencies `TextRenderer.js`, `Slugger.js`, etc...), plus I load md-block locally as well: How can I now tell md-block to use the local...

Tried adding {:target=”_blank”} but didn't work

`` ignores Markdown block quote syntax inside its contents. For example: ``` > Block quote > doesn’t work > as expected ``` renders in-browser as a `` containing: ``` >...

bug

Hi there, first of all, thank you very much for this nice project! I used your library, but it partly works. For example, making words italic or bold works well,...

I solved this by hardcoding the version of marked to 5.0.3 in a copy of it that I added to my server. Line 11 of md-block.js now reads: ``` marked:...

I tried using this in a Chrome extension to render Markdown from ChatGPT code boxes. It was a real nightmare and I couldn't even get it to work. The links...

allow consuming apps to customize the marked instance.

Apparently marked doesn't offer a way to do this (see https://github.com/markedjs/marked/issues/488 ) except in a restricted way, so it would need to be implemented ad hoc.

Right now, `textContent` doesn't do anything special, and one needs to use `mdContent` to re-render Markdown on the component. However, that means that `` doesn't work well with libraries that...