the width and half the height, but to be as large as possible. With
noupscale this calculation never makes the image larger than the
native size of the image, only the same size or smaller.
+- "hide" - the text affected by this attribute is not rendered at all.
+ If any other attribute is active with the same or higher priority,
+ "hide" becomes ineffective.
### lib-markup
Importantly and attribute which affects spacing, like 'tab' or 'centre'
and which cannot be closed and re-opened must have priority of 0.
+Conversely the attribute "hide" is implicitly disabled when any other
+attribute has a higher priority, and so it should typically have the
+largest of the priorities in use.
I would like 'str2' to be inserted with the given attributes, but that
isn't implemented yet.
break;
if (doc_boundary && mark_ordered_or_same(doc_boundary, m))
break;
+ chars++;
+ if (ar.ast && strcmp(ar.ast->attr, "hide") == 0)
+ continue;
if (ch == '<') {
if (o >= 0 && b.len+1 >= o) {
doc_prev(focus, m);
buf_concat(&b, "</>");
} else
buf_append(&b, ch);
- chars++;
}
if (add_newline && want_vis_newline(ar.ast))
buf_concat(&b, "↩");