offset = t->start;
- // Look left -- no whitespace to left
- if ((offset == 0) || (char_is_whitespace_or_line_ending_or_punctuation(str[offset - 1]))) {
- t->can_open = 0;
- }
-
+ // Can't close if whitespace to left
if ((offset != 0) && (char_is_whitespace_or_line_ending(str[offset - 1]))) {
t->can_close = 0;
}
<text:p text:style-name="Standard">~/Library/MultiMarkdown</text:p>
-<text:p text:style-name="Standard">^test</text:p>
+<text:p text:style-name="Standard"><text:span text:style-name="MMD-Superscript">test</text:span></text:p>
<text:p text:style-name="Standard">10</text:p>
<text:p text:style-name="Standard">20</text:p>
<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">CH~4~</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="MMD-Superscript">238</text:span>U</text:p>
+
+<text:p text:style-name="Standard">Ca<text:span text:style-name="MMD-Superscript">2+</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="MMD-Subscript">t</text:span>p<text:span text:style-name="MMD-Subscript">x</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="MMD-Superscript">23</text:span>Na<text:span text:style-name="MMD-Superscript">1+</text:span></text:p>
</office:text>
</office:body>
</office:document>
<p>~/Library/MultiMarkdown</p>
-<p>^test</p>
+<p><sup>test</sup></p>
<p>10</p>
<p><code>CH~4~</code></p>
+<p><sup>238</sup>U</p>
+
+<p>Ca<sup>2+</sup></p>
+
+<p><sub>t</sub>p<sub>x</sub></p>
+
+<p><sup>23</sup>Na<sup>1+</sup></p>
+
</body>
</html>
\ensuremath{\sim}\slash Library\slash MultiMarkdown
-\^{}test
+\textsuperscript{test}
10
\texttt{CH\ensuremath{\sim}4\ensuremath{\sim}}
+\textsuperscript{238}U
+
+Ca\textsuperscript{2+}
+
+\textsubscript{t}p\textsubscript{x}
+
+\textsuperscript{23}Na\textsuperscript{1+}
+
\input{mmd6-article-footer}
\end{document}