Bug:
var markdownString = '# Hello World!' // or read from a .md file
ampl.markdown2AmpHTML({markdown:markdownString}, function(ampHtml) {
console.log(ampHtml)
})
emits
<!doctype html>
Hello World!
<!doctype html> should not be emitted in the body. parseHtml() appears to put it no matter what to start. This bug also works if you use parse w/ headOverride: '' //empty header.
great project. <!doctype html> is a head tag.
Bug: var markdownString = '# Hello World!' // or read from a .md file ampl.markdown2AmpHTML({markdown:markdownString}, function(ampHtml) { console.log(ampHtml) }) emits <!doctype html>
Hello World!
<!doctype html> should not be emitted in the body. parseHtml() appears to put it no matter what to start. This bug also works if you use parse w/ headOverride: '' //empty header.