Skip to content

Commit

Permalink
[Doc2Rst] Add support for subscript tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Jul 19, 2012
1 parent a51d940 commit 27325e2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/doc2rst.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,14 @@
</xsl:if>
</xsl:template>

<!-- superscript -->
<!-- subscript -->
<xsl:template match="//doc:subscript" name="subcript">:sub:`<xsl:call-template name="formatText"/>` <xsl:text/>
<xsl:if test="name(following-sibling::node()[1]) != ''">
<xsl:text> </xsl:text>
</xsl:if>
</xsl:template>

<!-- citetitle -->
<xsl:template match="//doc:citetitle" name="citetitle">:t:`<xsl:call-template name="formatText"/>` <xsl:text/>
<xsl:if test="name(following-sibling::node()[1]) != ''">
<xsl:text> </xsl:text>
Expand Down

0 comments on commit 27325e2

Please sign in to comment.