retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

Support for text/gemini #547

Open MCMic opened 3 years ago

MCMic commented 3 years ago

Hello,

It would be quite useful for me if retext could support gemini text format.

Mimetype is text/gemini, extension is usually .gmi or .gemini, and the specification is really simple, you can find it in section 5 of https://gemini.circumlunar.space/docs/specification.html

Basically it looks like this:

# Header 1
## Header 2
### Header 3
This is a paragraph
* This is an ordered list
* With two items
> This is a quote
=> https://gemini.circumlunar.space/docs/specification.html This is a link to the specification

You can also have preformatted text by surrounding it with lines starting by ```.

mitya57 commented 3 years ago

Hi!

Unfortunately, I don't have enough time or interest to implement this myself, but Python-Markups module provides an API to implement any custom markups, and any such markup will be available in ReText too:

https://pymarkups.readthedocs.io/en/latest/custom_markups.html

clach04 commented 3 months ago

Link returns

The remote server returned 51: Not found!

Recommend closing this ticket.

mitya57 commented 3 months ago

Gemini documentation seems to be now available at:

So I am not closing this ticket, however response stays the same: contributions (to pymarkups) are welcome.