Skip to content

Commit

Permalink
fix: Implement parce on pure html
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan-LukeKlopper committed Jun 6, 2024
1 parent bcd13ed commit 3f2d54b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ProposalDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ function ProposalDetails(props) {
const fancyHTMLfromMarkdown = micromark(fixDescription, { extensions: [gfm()], htmlExtensions: [gfmHtml()] })
//const basicHTMLnoTransform = parse(basicHTMLfromMarkdown)
//const fancyHTMLnoTransform = parse(fancyHTMLfromMarkdown)
const basicParseTest = parse('<h1>hello</h1><h2>How are you</h2>')

console.log("basicHTMLfromMarkdown", basicHTMLfromMarkdown);
console.log("fancyHTMLfromMarkdown", fancyHTMLfromMarkdown);
console.log("transformed basic element 1", transformElement(basicHTMLfromMarkdown[0]))
console.log("basic parse test", basicParseTest)
//console.log("basicHTMLafterTransform", basicHTMLnoTransform);
//console.log("basicHTMLafterTransform", fancyHTMLnoTransform);
const parsedDescription = "hi"
Expand Down

0 comments on commit 3f2d54b

Please sign in to comment.