billdavisjr / quotations-space

Continuation of my Code Institute 3rd Milestone project - Quotation(s).space and quooqle.com site - using Python, Flask, MongoDB, etc.
https://quotations-space.herokuapp.com/
0 stars 0 forks source link

Figure out how to allow line breaks in quotes; HTML removes them #26

Open billdavisjr opened 4 years ago

billdavisjr commented 4 years ago

Might have to take the text and add
takes everywhere there is a \ or something, then inject that into the quote-text DIV tag's .innerHtml or .html property?

billdavisjr commented 4 years ago

Switch to using AIrTable for database; it allows formatted text fields, though (oddly) not in HTML but in MarkDown or something else. Perhaps there is a codelibrary for JS or Python that will convert Markdown to HTML? Also, could we just implement the original suggestion in Python and convert the quotation_text field before we pass it to the template for display?