Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve metastring language from codeblocks #803

Merged
merged 1 commit into from
Oct 7, 2019

Conversation

pomber
Copy link
Contributor

@pomber pomber commented Oct 6, 2019

If there is a class arg in the metastring:

```js class=foo
```

className="language-js" is being replaced with className="foo".

This PR adds the class to the list instead of replacing it: className="language-js foo"

@vercel vercel bot temporarily deployed to staging October 6, 2019 23:40 Inactive
@vercel
Copy link

vercel bot commented Oct 6, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://mdx-git-fork-pomber-preserve-metastring-lang.mdx.now.sh

@johno
Copy link
Member

johno commented Oct 7, 2019

Thank you!

@johno johno merged commit e95e2c1 into mdx-js:master Oct 7, 2019
@pomber pomber deleted the preserve-metastring-lang branch October 7, 2019 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants