jelovirt / org.lwdita

LwDITA parser for DITA-OT
http://lwdita.org/
Apache License 2.0
25 stars 19 forks source link

Preserve line breaks in table cells #216

Closed raducoravu closed 1 month ago

raducoravu commented 5 months ago

If a Markdown table cell has a "br" element inside it it would be great if it could be converted to the "linebreak" processing instruction so that it can make it through to the other side and produce a line break in the HTML or PDF output.

# abc

| **1** | **2** |
| ------------ | ---------------- |
| test         | line1<br />line2 |
michael-nok commented 2 months ago

Use <p> tags instead to create separate lines.

| **1** | **2** |
| ------------ | ---------------- |
| test         | line1<p>line2</p>|

Output:

1 2
test line1

line2

jelovirt commented 1 month ago

Closing as this is a confirmed workaround. @michael-nok thank you for the answer.