I can't seem to get the list function to work when I pass in a string to kramdown
:
For example, this is my text:
email_body = "Hi, Tim! Hopefully you get this. I just got your email address. \n\n My email is x@xcom. \n\n For example, you could tell me: * 3 hours from now\n * 2 days from now at 5pm\n * Wednesday afternoon\n"
email_body = Kramdown::Document.new(email_body).to_html
email_body = "<p>Hi, Tim! Hopefully you get this. I just got your email address. \n\n My email is x@xcom. \n\n For example, you could tell me: * 3 hours from now\n * 2 days from now at 5pm\n * Wednesday afternoon\n</p>"
I can't get it to turn into proper HTML based on Markdown/kramdown (e.g. insert <ul>
and proper line breaks.