draft-js-utils icon indicating copy to clipboard operation
draft-js-utils copied to clipboard

Example for markup code-block export

Open n3ssi3 opened this issue 5 years ago • 0 comments

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

n3ssi3 avatar Mar 26 '20 11:03 n3ssi3