edemaine / coauthor

Coauthor supercollaboration/discussion forum
MIT License
246 stars 32 forks source link

Emoji as bullet points #575

Open diomidov opened 3 years ago

diomidov commented 3 years ago

It would be nice if you could replace bullet points with arbitrary emojis, similarly to how you can do it with checkboxes. Example use case: image

Possible syntax:

* [ā­] Good item
* [šŸš«] Bad item
* [šŸ’©] Very bad item
edemaine commented 3 years ago

You can do it currently with LaTeX:

\begin{itemize}
\item[ā­] Good item
\item[šŸš«] Bad item
\item[šŸ’©] Very bad item
\end{itemize}

Given this, your Markdown notation seems like a natural extension of this feature. It will require a bit of work, though, because I'm currently using a "GitHub checkbox" plugin which specifically matches only [ ] or [x].

Should * [hi] and 1. [5.] also modify the bullet, or just emoji? Hmm, clearly * [x] shouldn't make an x label...

diomidov commented 3 years ago

How about "any string except for ` andx"? If for some reason you want literalxas a label, you can probably make the label x ` and it'll look the same.

But what should 1. [$n^2$] do? Should the label be "nĀ²" or "$n^2$"?

Also, it should only get parsed as a list label if it is followed by a space (or any whitespace character? or end of string?). We don't want * [ā­](https://example.com) to get parsed a list label followed by a parenthesized URL. The GitHub checkbox plugin already checks for this.