Closed hashrock closed 1 year ago
https://twitter.com/kebsworld/status/1652289518249099270
script:
import { render } from "https://deno.land/x/gfm@0.2.1/mod.ts"; const body = "[hello](https://example.com/) World"; const html = render(body, { disableHtmlSanitization: true, }); console.log(html);
result:
<p><a href="https://example.com/" title="null" rel="noopener noreferrer">hello</a> World</p>
But not reproduced with no option:
import { render } from "https://deno.land/x/gfm@0.2.1/mod.ts"; const body = "[hello](https://example.com/) World"; const html = render(body); console.log(html);
<p><a href="https://example.com/" rel="noopener noreferrer">hello</a> World</p>
Report on twitter
https://twitter.com/kebsworld/status/1652289518249099270
Minimal Reproduction
script:
result:
But not reproduced with no option:
script:
result: