Skip to content
This repository was archived by the owner on Feb 28, 2022. It is now read-only.

Commit e3e1102

Browse files
committed
conver more tags in xml
1 parent 48fe694 commit e3e1102

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

src/Microsoft.Content.Build.Code2Yaml.Utility/TripleSlashCommentTransform.xsl

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,56 @@
66

77
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
88

9+
<xsl:template match="bold">
10+
<b>
11+
<xsl:apply-templates />
12+
</b>
13+
</xsl:template>
14+
15+
<xsl:template match="emphasis">
16+
<em>
17+
<xsl:apply-templates />
18+
</em>
19+
</xsl:template>
20+
21+
<xsl:template match="preformatted">
22+
<pre>
23+
<xsl:apply-templates />
24+
</pre>
25+
</xsl:template>
26+
27+
<xsl:template match="subscript">
28+
<sub>
29+
<xsl:apply-templates />
30+
</sub>
31+
</xsl:template>
32+
33+
<xsl:template match="superscript">
34+
<sup>
35+
<xsl:apply-templates />
36+
</sup>
37+
</xsl:template>
38+
39+
<xsl:template match="programlisting">
40+
<code>
41+
<xsl:apply-templates />
42+
</code>
43+
</xsl:template>
44+
45+
<xsl:template match="codeline">
46+
<xsl:apply-templates />
47+
<xsl:text>
48+
</xsl:text>
49+
</xsl:template>
50+
51+
<xsl:template match="highlight">
52+
<xsl:apply-templates />
53+
</xsl:template>
54+
55+
<xsl:template match="sp">
56+
<xsl:text>&#160;</xsl:text>
57+
</xsl:template>
58+
959
<xsl:template match="para">
1060
<p>
1161
<xsl:apply-templates />

0 commit comments

Comments
 (0)