glenjamin/devboard

code blocks via ``` are annoying in template functions

glenjamin opened this issue · 8 comments

eg.

devcard.anon(
  `
  Cards don't have to have names
  \`\`\`js
  devcard.anon(doc, body)
  \`\`\`
  `,
  <h3>What's in a name, anyway?</h3>
);

Would be good to provide some alternative that's a bit nicer.

Oh, apparently this isn't actually needed: https://gist.github.com/jorendorff/d3df45120ef8e4a342e5

Edit: this comment isn't relevant, the linked gist is about writing ES6 template strings in markdown, not the other way around.

We could work a bit on the Markdown parser to provide another way to do so like by using ~ for instance, but we would be taking a step away from Markdown syntax.

"I just learned something new, github already allows using ~"

The source of the above is:

~~~js
"I just learned something new, github already allows using ~"
~~~

I guess this is one problem solved.

Yup, I'll close once the examples are all converted to use ~~~

Closed via cc666ec