-
Notifications
You must be signed in to change notification settings - Fork 20
Multi line comment not working. #4
Comments
This problem does not exists if your code nodes contain a single text node, with newlines character inside. However, that generally leads to poor performance when writing inside large code chunks. That's why in Maybe
Edit: My bad. There's no concept of decorators in Slate. We use marks. I removed the irrelevant parts. |
@Soreine I think Then when applying the tokens to the, use |
Fixed by #5 |
Since the decorator gets one text node at a time, multi-line comments with /* */ are not color coded as comments. Not sure how this can be fixed. Maybe marks should be applied as transform() onChange instead of plugin decorator. Any thoughts ?
The text was updated successfully, but these errors were encountered: