Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown syntax highlighter #2068

Merged
merged 2 commits into from
Oct 13, 2024
Merged

markdown syntax highlighter #2068

merged 2 commits into from
Oct 13, 2024

Conversation

Bowrna
Copy link
Contributor

@Bowrna Bowrna commented Oct 4, 2024

related: #2058

Added fix to support markdown syntax highlighter. As code-flask doesn't support markdown by default, I had to import prism-markdown. Added styles in shadow DOM as style from prismjs doesn't percolate/get injected into shadow DOM.

Let me know if anything has to be modified/ fixed in this PR.

@knadh
Copy link
Owner

knadh commented Oct 5, 2024

Looks fine @Bowrna. The JS lint test is failing though. vscode (or any other editor with a VueJS plugin) should ideally have auto-formatted it.

@Bowrna Bowrna force-pushed the md_editor_highlight branch from 3511b16 to 452e1b2 Compare October 5, 2024 08:35
@knadh
Copy link
Owner

knadh commented Oct 6, 2024

Tested this locally. One minor issue. The editor box styling is a bit broken. It's missing borders and it's height is off. Should be the same as other editors.

image

@Bowrna
Copy link
Contributor Author

Bowrna commented Oct 6, 2024

Ah I missed noticing it. Let me fix it.

@Bowrna Bowrna force-pushed the md_editor_highlight branch from 452e1b2 to a27829a Compare October 8, 2024 05:53
@Bowrna
Copy link
Contributor Author

Bowrna commented Oct 8, 2024

@knadh updated the styling sheet for markdown-editor.

@knadh knadh merged commit 5074987 into knadh:master Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants