Skip to content

Commit 6fe6fc4

Browse files
author
Eric Bailey
authored
Simplify string to remove escapes
1 parent 2139e2e commit 6fe6fc4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ Highlight code blocks when parsed. Accepts a function with the signature `hightl
5151
import snarkdown from 'snarkdown'
5252
import prism from 'prismjs'
5353

54-
let md = `
55-
\`\`\`javascript
56-
let md = "I'm a code block";
57-
\`\`\`
58-
`
54+
let md = '```javascript \n let md = "a javascript code block";```'
5955
let html = snarkdown(md, {
6056
highlight: (code, language) => {
6157
return prism.highlight(code, prism.languages[language])

0 commit comments

Comments
 (0)