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

Example for markup code-block export #214

Open
n3ssi3 opened this issue Mar 26, 2020 · 0 comments
Open

Example for markup code-block export #214

n3ssi3 opened this issue Mar 26, 2020 · 0 comments

Comments

@n3ssi3
Copy link

n3ssi3 commented Mar 26, 2020

Hey there,

Is there an example code on how we have to set the code language so it gets exported correctly?
https://github.com/sstur/draft-js-utils/blob/master/packages/draft-js-export-markdown/src/stateToMarkdown.js#L135

Screenshot 2020-03-26 at 11 59 41

I added a dropdown to select the code language, but now I don't know how to update the block so the code language gets exported with it.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant