Closed dsanders12 closed 2 years ago
When we run into things like this it is great to fix it like you did. I just went back to the docutils2ptx.xsl
file and added these transformations so that the next time someone does a conversion they won't have to.
<xsl:template match="tip">
<note>
<xsl:apply-templates select="node()|@ids" />
</note>
</xsl:template>
<xsl:template match="caution">
<warning>
<xsl:apply-templates select="node()|@ids" />
</warning>
</xsl:template>
If you have an interest in xsl it is a powerful language for doing transformations like this.
Changes all instances of non-PreTeXt tags and to PreTeXt tags and , respectively.