markdown-wasm/test/issue2.js
2020-10-15 13:37:03 -07:00

11 lines
385 B
JavaScript

// https://github.com/rsms/markdown-wasm/issues/2
const { checkHTMLResult, exit } = require("./testutil")
// When MD4C_USE_UTF8 is not defined for md4c, the example input here fail to parse as a valid
// reference link. In that case, instead of the expected output, we get "<p>[Á]</p>".
checkHTMLResult("MD4C_USE_UTF8", `
[á]: /url
[Á]
`, `<p><a href="/url">Á</a></p>\n`)
exit()