-
Notifications
You must be signed in to change notification settings - Fork 72
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 support #1678
Comments
This project is built around language servers - so if you know of language server for editing markdown please give us a link to be evaluated. Implementing it as part of this project would mean reimplementing wikitext which would be loss of time for us. |
There is https://github.com/artempyanykh/marksman. If doing this is not worth the work then feel free to close it. |
That's very interesting and has the potential to outsmart wikitext. IMO it's worth experimenting with standalone eclipse plugin integrating it - once usable it can be offered for inclusion here or to mylyn for easier redistribution. Are you interested in experimenting with it? |
If you mean trying out a development version, then sure. It also occurred to me just now that in Java 23, docs can be written in Markdown: https://openjdk.org/jeps/467. This means that Eclipse has to be able to show a preview of the docs (it does so for the HTML-based once), which in turn means that maybe the JDT team already has a markdown renderer. I'll try to dig a bit into this. |
The relevant Eclipse issue is eclipse-jdt/eclipse.jdt.ui#1472. Also eclipse-jdt/eclipse.jdt.core#2744. Specifically, the solutions they brought up are Mylyn Wikitext and CommonMark, (eclipse-jdt/eclipse.jdt.ui#1472 (comment)), with the latter existing in Orbit already (eclipse-jdt/eclipse.jdt.ui#1472 (comment)), so they went with that. Now I wonder if the solution they implemented can also be used for .md files. Needs more digging... |
Here is the reply: eclipse-jdt/eclipse.jdt.ui#1472 (comment). |
What are the current issues with Mylyn Wikitext for markdown edition? |
Initially I thought it would just avoid the installation of multiple features because the solutions will be concentrated in one place. But now, according to @akurtakov, there is a potential for improvement of WikiText regardless of where it's distributed. |
FWIW, we had some discussion with @akurtakov and the outcome is that we simply improved the TextMate themes shipped by TM4E. In the end, the generic editor with latest build of TM4E does a good job, sometimes better than wikitext. |
Can you link to these changes? |
@nlisker In combination with the TM4E/Generic Editor you can additionally install https://github.com/sebthom/previewer-eclipse-plugin which can render (GitHub Flavored) markdown. |
@sebthom very interesting plugin! what I'm wondering is if it is somehow possible to integrate it with the generic editor to show an additional I'm currently using a markdown editor that show it like this: and find it quite handy, this is also like its done in Github UI and many other editors. It could also be useful with an HTML editor. @mickaelistria I think it would be very useful if the preview feature (extension point + view) would be part of generic editor at platform so the plugin of @sebthom can plug into this (and others maybe as well). |
I don't think that the proposal with a preview editor tab is actually as interesting as a dedicated view. I remember I had considered that when doing an old "Draw2d preview" that was capable of rendering the figure that's being coded; and ended up convinced that a preview view is drastically better and that preview tabs on editor are somehow an antipattern. |
A separate view has the disadvantage that I need double the space to show both and I always can only preview one document at a time. Such feature do not needs to be exclusive and different user might use different ways (and one can even have a preference to switch the preview tab on/off) so one can offer both ways. In any case I think the preview feature would be something that should be shipped by default with generic editor. |
What if people who would still want wili edition but without the Preview tab because they prefer the reacting view? |
I don't understand?!?
|
I don't understand either ;) |
https://github.com/sebthom/previewer-eclipse-plugin/blob/main/plugin/schema/renderers.exsd |
I think the option to add different tabs via an extension point to the generic editor for different forms of representation of the underlying data would be nice, similar to the m2e pom editor but I guess this seems to be the wrong repo to discuss that. |
Markdown is a ubiquitous syntax. Adding a renderer or syntax highlighter that shows what the resulting look is would be helpful and, in my opinion, fitting for this toolset. Mylyn WikiText exists, but consider adding your alternative for a more complete solution.
The text was updated successfully, but these errors were encountered: