Trix: Add markdown support or state that it will not be added

Created on 2 May 2019  路  22Comments  路  Source: basecamp/trix

Trix doesn't support Markdown in and out, and while for many uses that's just fine, for my use-case that's a showstopper.

I'd like to see support for Markdown (specifically CommonMark) added to Trix, either directly or perhaps as some sort of plug-in. Support for Markdown was previously raised in https://github.com/basecamp/trix/issues/35 but closed without clear resolution. Similarly, there was a "roadmap"/ideas list in https://github.com/basecamp/trix/issues/31 , but that was closed without clearly noting if that's a desired capability.

If Markdown is expressly not going to be added to Trix (because the developers oppose it), I'd like that documented clearly. Otherwise I suspect this issue will keep resurfacing & wasting everyone's time.

Thanks so much for your time!!

Most helpful comment

This pull requests adds basic markdown support: https://github.com/basecamp/trix/pull/737

All 22 comments

This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.

Sorry for the bump (just doing it because of the stalebot), but we would also like to know the answer to this question!

What does "support Markdown" mean, exactly? Automatically convert Markdown syntax to formatted text as you type?

Just chiming in. In my own use case I would expect markdown to output HTML but not format as I type. That _would_ be a bonus but not crucial. Maybe something like reddit does with a toggle between their "fancy pants" editor and their markdown editor?

Screen Shot 2019-08-04 at 10 20 43 PM

We're looking for something that takes in markdown and produces markdown. We only convert to HTML at display time, and like this because it gives us some flexibility between content and display. We currently use (the now abandoned) https://simplemde.com/ for this.

Hi there 馃憢

What does "support Markdown" mean, exactly? Automatically convert Markdown syntax to formatted text as you type?

Yes that is something I'd be really looking forward to.
As of now the output of Trix is HTML-Markup or am I mistaken?

Hello!

I'm also very interested in the possibility to edit docs in Markdown that will be then outputted in HTML (once it is saved as a draft or posted).

I would especially like to benefit of syntax highlighting in code samples.

Just leaving a note to say that SimpleMDE appears to be abandoned, with its most current revision being 4 years ago, while the EasyMDE fork is being actively developed.

https://github.com/Ionaru/easy-markdown-editor

For me, I'd like to have a Document to Markdown converter. So I could store Markdown text into my database and access that data from other systems or languages such as Java. I believe the data format in database should be some kind of standard and exchangeable format rather than Trix format.

Our text is stored in Markdown format in our database. There's a nice spec for Markdown, specifically CommonMark. So while we'd like to use Trix, it's useless for our purposes without roundtrip support for Markdown. Many other sites use Markdown, including GitHub (which we're typing on right now!). And there are a lot of "likes" on this issue. In short: I think the desire to roundtrip with Markdown is a widespread desire. That may not convince you, but I'm hoping it will :-).

Hey guys, I would like to start implementing markdown support in trix. Would a toggle between the normal editor and a markdown editor (脿 la reddit editor, as suggested by @justalever), be enough? I'm thinking that the serialized editor would still return HTML and would still take in HTML. Any thoughts?

@maximedupre - I can't speak for the universe. However, we store data in Markdown (as do many others), so having a way to take & return Markdown would be what we'd want. That said, it doesn't need to be the default, just a way to configure it (possibly using some external library / plug-in).

I also think storing markdown is the way to go, It's more portable. I guess the translation between markdown and Trix won't be a performance issue :thinking:

I will have to parse markdown anyway, so might as well offer the possibility to pass in markdown as an initial value. I have no idea about what the performances will look like. I'll optimize later if needed.

This pull requests adds basic markdown support: https://github.com/basecamp/trix/pull/737

This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.

PR #737 is still fairly active, I don't think it's appropriate to close this issue yet.

This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.

It still looks like there's semi-recent activity on #737, I don't think it's appropriate to close this issue without a firm statement from the maintainers.

This should not be marked closed. There's a proposed fix, and no word from the maintainers on what will actually happen.

This issue has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.

There's a proposal for progress on #737, without decision. This issue shouldn't be closed, it's a proposal important to some people with a starting implementation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

javan picture javan  路  4Comments

adamdebono picture adamdebono  路  3Comments

lcsqlpete picture lcsqlpete  路  3Comments

pars0097 picture pars0097  路  4Comments

madikarizma picture madikarizma  路  5Comments