-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: allow code inside playground to contain ticks and backticks #203
Conversation
@@ -18,7 +18,7 @@ | |||
"clean": "lerna clean", | |||
"bs": "lerna bootstrap", | |||
"packages": "run-s packages:*", | |||
"packages:fix": "lerna run fix", | |||
"packages:fix": "lerna run fix && echo", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a hack, I had to do it because lint-staged was passing the file names as argument to fix
script in packages, and it was breaking them, causing a false error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have felt this pain before 😅
const child = strip(removePlayground(code)).trim() | ||
const child = strip(removePlayground(code)) | ||
.trim() | ||
.split(`'`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that is better to use replace
instead of join
and split
in this case, no?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I agree. Thanks for doing the change yourself #205
Cheers !
…round * 'dev' of github.com:pedronauck/docz: fix(rehype-docz): allow ticks and backticks inside playground (#203)
fixes #201