Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

fix: allow code inside playground to contain ticks and backticks #203

Merged
merged 2 commits into from
Aug 9, 2018
Merged

fix: allow code inside playground to contain ticks and backticks #203

merged 2 commits into from
Aug 9, 2018

Conversation

rakannimer
Copy link
Contributor

fixes #201

@@ -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",
Copy link
Contributor Author

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.

Copy link
Contributor

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(`'`)
Copy link
Member

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?!

Copy link
Contributor Author

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 !

@pedronauck pedronauck changed the base branch from master to dev August 9, 2018 20:43
@pedronauck pedronauck merged commit fa4ff40 into doczjs:dev Aug 9, 2018
pedronauck added a commit that referenced this pull request Aug 9, 2018
…round

* 'dev' of github.com:pedronauck/docz:
  fix(rehype-docz): allow ticks and backticks inside playground (#203)
pedronauck added a commit that referenced this pull request Aug 10, 2018
* 'dev' of github.com:pedronauck/docz:
  feat: allow edit code inside playground (#205)
  fix(rehype-docz): allow ticks and backticks inside playground (#203)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants