use prism-tomorrow.css
This commit is contained in:
36
docs/_style/prism-master/tests/languages/jsx/issue1408.test
Normal file
36
docs/_style/prism-master/tests/languages/jsx/issue1408.test
Normal file
@ -0,0 +1,36 @@
|
||||
<div style={{ marginLeft: `${sidePanelWidth}px` }}>
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["tag", [
|
||||
["tag", [
|
||||
["punctuation", "<"],
|
||||
"div"
|
||||
]],
|
||||
["attr-name", ["style"]],
|
||||
["script", [
|
||||
["script-punctuation", "="],
|
||||
["punctuation", "{"],
|
||||
["punctuation", "{"],
|
||||
" marginLeft",
|
||||
["punctuation", ":"],
|
||||
["template-string", [
|
||||
["string", "`"],
|
||||
["interpolation", [
|
||||
["interpolation-punctuation", "${"],
|
||||
"sidePanelWidth",
|
||||
["interpolation-punctuation", "}"]
|
||||
]],
|
||||
["string", "px`"]
|
||||
]],
|
||||
["punctuation", "}"],
|
||||
["punctuation", "}"]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for template string with interpolation inside object inside JSX tag. See #1408
|
Reference in New Issue
Block a user