kobotoolbox / enketo-express

We've moved! Please use the new repository 🠊 https://github.com/enketo/enketo-express
Apache License 2.0
102 stars 90 forks source link

markdown issue with headings on multiple lines #949

Closed MartijnR closed 6 years ago

MartijnR commented 6 years ago

Paul sending form on 2/28

MartijnR commented 6 years ago

Looks like a pyxform issue (that may actually have been fixed in pyxform)

I see this in the XForm:

        <label># test 1
## test 2 ### test 3
#### test 4 ##### test 5
###### test 6 ####### test 7
test normal</label>

However, this reformatting may actually be following XML rules, so maybe we need to let pyxform output line breaks differently.

http://www.brighthub.com/internet/web-development/articles/82183.aspx

Yes, if http://opendatakit.org/xiframe/ is newer than what OC is using, updating to the latest pyxform may solve the issues, except for the one below.

MartijnR commented 6 years ago
MartijnR commented 6 years ago

Solution is to not create a non-existing <h7> element. Since that is a made-up element, it doesn't have the "block" css display rule.

MartijnR commented 6 years ago

something is wrong with paragraph creation as well. "a" and "test normal" should be on separate lines

screen shot 2018-03-02 at 10 59 34 am
MartijnR commented 6 years ago

heading

line1 line2

MartijnR commented 6 years ago

http://markdown-guide.readthedocs.io/en/latest/basics.html#paragraphs

MartijnR commented 6 years ago
MartijnR commented 6 years ago

In OC fork, this has been merged into feature/oc-api