Open nbsp opened 11 months ago
I have compared our two versions. There are some interesting differences.
You covered some things I missed:
I covered some things you don't:
####
not a header. I am not sure if this is correct. I see Lagrange isn't that strict.wrap
or nowrap
. I doubt this is useful.pre
. I think the grammar should be named gemtext, not gemini. Gemini is the protocol, gemtext is the file format. Vim/nvim also use the name gemtext.
I don't know how to continue. I have more questions:
list
. Gemini browsers don't need this. But for a parser that converts gemtext to html this would be useful. What about groups of quote lines? Paragraphs?You parse tags at the beginning of code blocks. I don't, though I do allow for extra text. Is this part of the specification?
it is! clients MAY parse that as alt text.
I require a space after a header marker, making lines that start with #### not a header.
i followed the gemini protocol closely to see what tags need a space after them and what don't. it's inconsistent, but i followed the specification to a T.
I think the grammar should be named gemtext, not gemini. Gemini is the protocol, gemtext is the file format.
that is largely incorrect. the colloqueal name for the file format is gemtext, yes, but it's not specified anywhere in any of the official specification. the canonical file format is text/gemini
, so in my opinion the name is gemini text
, not gemtext
.
i'll have a look at the rest of your notes later :)
hello! just wanted to point you in the direction of my
tree-sitter-gemini
repository, which as far as i can tell is feature complete, and used in the Helix editor. https://git.sr.ht/~sfr/tree-sitter-gemini i think it would be best if we consolidated our efforts and tried to work on this together in case it isn't finished after all!