Skip to content

Wrapping of matrix inputs inside paragraph environments. #1822

Description

@B28LH

This demo file (adapted from HELM 7.1.4.2) has matrix answers in a <p> paragraph tag that wrap the input boxes in the next line from the lead-in text.

The key snippet is:

For the following matrices find \(A+B,\ A-B,\ B-A,\ 2A\):&nbsp;
<p>\[A = {@mat1@} \text{ and } B = {@mat2@}.\]</p>
<p>\(A+B = \) [[input:ans1]] [[validation:ans1]][[feedback:prt1]]</p>
<p>\(A-B = \) [[input:ans2]] [[validation:ans2]][[feedback:prt2]]<br></p>
<div>\(B-A = \) [[input:ans3]] [[validation:ans3]][[feedback:prt3]]<br></div>
<div>\(2A = \)&nbsp; [[input:ans4]] [[validation:ans4]][[feedback:prt4]] 

Which renders on the STACK API as:

Image

This does not happen in a <div> environment (see the third and fourth lines above).

If this is expected behaviour, is the best practise to wrap these lines in only a <div>?

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions