Skip to Content
Referenceinsert

<insert>

Text marked as inserted (underlined by default)In development

The <insert> component is a Paragraph Markup component which marks the enclosed text as inserted. It is rendered underlined. Inline math inside is underlined along with the text; display math and inputs inside are not.

Use <insert> together with <delete> to show an edit: what was removed and what replaced it.

Attributes and Properties

Attributes for <insert>

Common to all components (9)
copy

reference. Create an independent copy of another component by reference. Enter a references a $name.

disabled

boolean. Default value: false. Whether this component is disabled and cannot be interacted with.

extend

reference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.

fixed

boolean. Default value: false. Whether this component's value is fixed and cannot be modified.

fixLocation

boolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

hide

boolean. Default value: false. Whether to hide this component from the rendered output.

isResponse

boolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.

name

text. The name used to reference this component from elsewhere in the document.

styleNumber

integer. Default value: 1. The style number used to select this component's visual styling from the available style definitions.

Properties for <insert name="i">

Other (5)
$i.disabled

boolean. Whether this component is disabled and cannot be interacted with.

$i.fixed

boolean. Whether this component's value is fixed and cannot be modified.

$i.fixLocation

boolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

$i.hidden

boolean. Whether this component is hidden from the rendered output.

$i.text

text. The combined text content of this component's children, with optional begin/end delimiters.

Common to all components (4)
$i.doenetML

text. The DoenetML source code that produced this component.

$i.hide

boolean. Whether to hide this component from the rendered output.

$i.isResponse

boolean. Whether this component is treated as a response for the purposes of assessment.

$i.styleNumber

integer. The style number used to select this component's visual styling from the available style definitions.

Examples

Example: <insert> adding a missing word

The <insert> component renders the enclosed text underlined.

Last updated on