code menu option generating <p><code></code></p> #523
Closed
yogeshbansal
started this conversation in
General
Replies: 1 comment 1 reply
-
p tag is just the default text wrapping tag for any markers. code here is a marker, hence that way. Note: if you are expecting the code to be syntax highlighting version like that, this is not it, this is simply a code tag, for the highlighting you might want to look at https://sibiraj-s.github.io/ngx-editor/examples/codemirror/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when the user types a code in the editor its generates a paragraph tag instead of pre tag (see the screenshot below)
So when a user previews the editor content it looks like
Beta Was this translation helpful? Give feedback.
All reactions