helsenorge / structor

FHIR Questionnaire Form Builder
https://static.helsenorge.no/static_skjemabygger/
MIT License
88 stars 34 forks source link

Added remove-markdown package to convert markdown text to plainText #426

Closed andreasnp closed 2 years ago

andreasnp commented 2 years ago

Used remove-markdown in Question.tsx to get both the markdown text and plainText of the text input. Used it together with a new function convertToPlaintext that also removes double backslashes before single asterix, spaces and newline in string.