hi,
I'm generating <li>s in a <ul> using javascript, and they don't render correctly in the resulting text. Hard-coded <li>s in the same list work fine. I'd expect something like:
but instead i get:
(I'm not sure about whether they have the leading bullet points as my list doesn't have these).
to provide some context, i'm trying to generate a table of contents using javascript. other problems i've noticed are that the links <a> generated by javascript aren't actually rendered as links in the pdf, unlike hard-coded links which are rendered as links in the pdf.
I'm generating <li>s in a <ul> using javascript, and they don't render correctly in the resulting text. Hard-coded <li>s in the same list work fine. I'd expect something like:
- hard-coded item 1
- generated item 1
- generated item 2
but instead i get:
- hard-coded item 1
- generated item 1generated item 2
(I'm not sure about whether they have the leading bullet points as my list doesn't have these).
to provide some context, i'm trying to generate a table of contents using javascript. other problems i've noticed are that the links <a> generated by javascript aren't actually rendered as links in the pdf, unlike hard-coded links which are rendered as links in the pdf.
Edited by facboy