Open hagenburger opened 6 years ago
Usually processing instructions have defined the paragraph as their element:
element
Lorem <?pi?> ipsum
pi.element refers to the <p> which will contain Lorem ipsum.
pi.element
<p>
Lorem ipsum
When a processing instruction is following a link/image, it would be useful if it’s pi.element refers to the <a>/<img>:
<a>
<img>
Lorem [ipsum](ipsum.html)<?pi?> dolor
Lorem ![ipsum](ipsum.jpg)<?pi?> dolor
This way it would be easy to access attributes like adding an ID, classes, or attributes:
Lorem ![ipsum](ipsum.jpg)<?: #my-image ?> dolor
Lorem ![ipsum](ipsum.jpg)<?: .big-image ?> dolor
Lorem ![ipsum](ipsum.jpg)<?: [width=100%] ?> dolor
#1 Trailing processing instructions should be related to /
Current situation
Usually processing instructions have defined the paragraph as their
element
:pi.element
refers to the<p>
which will containLorem ipsum
.Proposed change
When a processing instruction is following a link/image, it would be useful if it’s
pi.element
refers to the<a>
/<img>
:Example usage
This way it would be easy to access attributes like adding an ID, classes, or attributes: