-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 Preview #567
Comments
@jenslys So you mean raw and formatted text? Supporting |
I you like you can assign me to this issue and i would take a look :) |
@leon-wolf, I've assigned it to you, but we may consider the following before starting this task:
Note: Xcode has the concept of the preview canvas within the same tab, so for whatever thats worth.
CC: @CodeEditApp/maintainers |
Here is a potential resource mentioned in Discord |
btw Swift UI supports markdown natively like so: struct Markdown: View {
var body: some View {
VStack {
Text(.init("**Hello** *World*"))
}
}
} For finetuned control of rendering output you can read here how that works: https://developer.apple.com/documentation/swiftui/text/init(_:)-1a4oh An alternative library can be found here: https://github.com/apple/swift-markdown |
Yup, but it does not support images, so it is no direct replacement unfortunately. |
Probably.
Ideally configurable.
Ideally configurable.
Ideally configurable. In TextMate the user can freely map file extensions to languages. Then all commands are tied to languages and not file extensions. Languages are recognized based of file extensions. Bundles come with a set of preconfigured mappings.
Yes.
Probably a webview since it's usually possible to include a few selected raw HTML tags.
GitHub flavored Markdown would be nice. I think many of these questions are related to the first question. The way this is done in TextMate is via a bundle (extension). TextMate has a generic output window. The bundle chooses the type of output, plain text or HTML. For HTML TextMate will open a output window with a webview. For plain text it will just render the text in the output window. Since the output window is not tied to the Markdown feature, but a generic feature of TextMate, it's possible to configure if it should open a new window or open a new pane within the existing window. It's also possible to configure the placement of the pane. The Markdown bundle that ships with TextMate is for regular Markdown. But, since it's just a bundle, there are other bundles available that support various Markdown flavors. If the feature is not implemented as an extension and instead built-in, and the output pane/window/tab is specific for the Markdown feature, then it might not be worth support various settings on how/when/where the output should appear. But if it's a generic output view that can be reused for other things, then I definitely think the placement of the view should be configurable. In TextMate the output window is used for other bundles as well, like the HTML bundle. It has a Preview command, just as the Markdown bundle. Same name of the command/menu item, same keyboard shortcut, they all follow the same convention. See my comment here #262 (comment) which is a bit related. |
I Love Codeedit, have you guys thought about when this enhancement will be added? |
Curious to know if anything is happening regarding this since Markdown is a critical part of the documentation workflow for me. |
I don't think anyone is actively working on this right now, but it's 100% a planned feature. We're allocating more time towards things like LSP support and continued improvements to source control right now |
Describe the solution you'd like
Would be nice to have a feature where you can preview your markdown(
.md
) files within CodeEdit.Preferably matching GitHub's styling. Where you also could switch between dark and light mode.
Example preview from VS CODE:
https://cln.sh/MzuGHDycazmyxGssnWqp
Resources
The text was updated successfully, but these errors were encountered: