RivalsDB / rivalsdb

A deckbuilder and card database for Vampire the Masquerade: Rivals
https://www.rivalsdb.app/
The Unlicense
5 stars 5 forks source link

Markup in Deck description not allowing some basic Markup - Medium Priority #70

Open Robsmash138 opened 1 week ago

Robsmash138 commented 1 week ago

"It works for the headings and bold, but paragraph and line breaks don't work. Interesting that some work but not others" - Mr. Fuji reports from Unofficial Rivals

linear[bot] commented 1 week ago

RDB-94 Markup in Deck description not allowing some basic Markup - Medium Priority

stopfstedt commented 1 week ago

looks like we need to explicitly enable Github Flavored Markdown line-breaks when converting markdown to markup, using toHtmlWith instead of toHtml.

see https://package.elm-lang.org/packages/elm-explorations/markdown/latest/Markdown

code changes will need to happen in this file: https://github.com/RivalsDB/rivalsdb/blob/master/client/src/UI/Markdown.elm

might as well enable support for Markdown tables while at it.