dcgtc / dgrants

Decentralized Grant platform that implements quadratic funding.
GNU Affero General Public License v3.0
84 stars 39 forks source link

Feature : Pragmatic Rich Text #361

Open scco opened 2 years ago

scco commented 2 years ago

We could do some very simple Markup Language to formated Text and a realtime preview of the result.

rich text (1) edit (1)

Some pseudo code as i see this

'CRLFStringCRLF%' to '<p>Whatever</p>'
'CRLF#StringCRLF' to '<h1>String</h1'
'CRLF- String CRLF' to '<li>String</li>'

to wrap current text from '<p>full description text</p>' to single styleable objects i can style : '<p><h1>headline</h1></p><p>sentence</p><p><li>bullet</li></p>'

I would like to see a custom own solution what is probably just some lines of code, over another not-good-enough-designable dependency with probably to many features.

Here is the figma sketch - feel free to team up with me on this feature!

https://www.figma.com/file/sUQSYyPfooqTcVdajfZm0t/dgrants?node-id=1277%3A5619

phutchins commented 2 years ago

After a discussion regarding rolling our own simple implementation of markdown parsing vs using a library, we have decided that it should be done using an existing library so that we don't have to implement our own markdown which would be much more time consuming now and down the road to maintain.