Skip to content

Commit

Permalink
fix: remove parse calls from console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan-LukeKlopper committed Jun 6, 2024
1 parent f0b119d commit bcd13ed
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/ProposalDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,20 @@ function ProposalDetails(props) {

const basicHTMLfromMarkdown = micromark(fixDescription)
const fancyHTMLfromMarkdown = micromark(fixDescription, { extensions: [gfm()], htmlExtensions: [gfmHtml()] })
const basicHTMLnoTransform = parse(basicHTMLfromMarkdown)
const fancyHTMLnoTransform = parse(fancyHTMLfromMarkdown)
//const basicHTMLnoTransform = parse(basicHTMLfromMarkdown)
//const fancyHTMLnoTransform = parse(fancyHTMLfromMarkdown)

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

console.log("parsedDescription :", parse(
micromark(fixDescription),
{ replace: transformElement }
))
//console.log("parsedDescription :", parse(
// micromark(fixDescription),
// { replace: transformElement }
//))

useEffect(() => {
if(props.address !== props.wallet?.address && props.granters.includes(props.address)){
Expand Down

0 comments on commit bcd13ed

Please sign in to comment.