web-components
web-components copied to clipboard
Markdown support: Code blocks
Is your feature request related to a problem? Please describe. Code blocks are a useful markdown feature. It would be nice if the editor supports them.
Describe the solution you'd like The ability to create/edit/delete code blocks.
Maybe the ability to turn into a selection into a code block would be nice as well/
@jeromesimeon @irmerk Did some work to add the feature. Here is a recording. https://www.loom.com/share/238dbd1abb1e4a159038d113c61860aa
Is this feature correct? Let me know if there are any changes required.
some things to note:
- the icon used is similar to the
codeicon - Shortcut key does not work currently
@jeromesimeon @irmerk Requesting your review
Should this support start in markdown-transform @jeromesimeon?
Should this support start in
markdown-transform@jeromesimeon?
We already support code blocks in the markdown-transform
The video looks nice. Sadly the bottom of the screen doesn't show the markdown for that part of the document (I don't think?) so it's difficult to say if what's in the editor gets properly translated to a markdown block.
@K-Kumar-01 This looks great. If you have another video, or maybe even better a PR we could evaluate your proposal better!
Use https://github.com/accordproject/web-components/pull/289 as reference when starting this.