Enable code highlighting in Task Description #1758
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1758
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It appears that the MDE text editor doesn't have code highlighting enabled when using code blocks, would this be a useful feature to implement?
Enable code highlighting into Enable code highlighting in Task DescriptionHey, thanks for the suggestion!
I'm not quite sure if that's something easyMDE would need to implement or we when rendering the description. Do you mean highlighting while typing or when it is rendered?
Sorry for the hastily typed issue, I fat fingered the submit button too early!
I mean just on render, I don't think easyMDE allows for syntax highlighting on edit.
More info on this can be found at https://github.com/NikulinIlya/vue-easymde/blob/master/doc/configuration_en.md under "codeSyntaxHighlighting", I believe.
Just a nice QoL change for people like me who use Vikunja for issue tracking.
Thank you for the prompt response! Keep up the amazing work.
Thanks for the hint. I still think (since that's an easyMDE option) that's for syntax highlighting while typing. We're rendering the content ourselves in Vikunja with
markedjs
which I think would need to enable that separately. But that's something we'd need to test I guess.Do you want to send a PR?
Yup, looks like marked js has another option for syntaxhighlighting: https://github.com/markedjs/marked/blob/master/docs/USING_ADVANCED.md#alternative-using-reference
Nice searching. Unfortunately I am not in a position right now for me to clone/debug, but thank you for pointing me in the right direction and giving a few pointers.
Implemented in
f1206e8274
, feel free to reopen if you have any problems.