Skip to content

Commit

Permalink
Simplify string to remove escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Jun 29, 2017
1 parent 2139e2e commit 6fe6fc4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ Highlight code blocks when parsed. Accepts a function with the signature `hightl
import snarkdown from 'snarkdown'
import prism from 'prismjs'

let md = `
\`\`\`javascript
let md = "I'm a code block";
\`\`\`
`
let md = '```javascript \n let md = "a javascript code block";```'
let html = snarkdown(md, {
highlight: (code, language) => {
return prism.highlight(code, prism.languages[language])
Expand Down

0 comments on commit 6fe6fc4

Please sign in to comment.