---
# System prepended metadata

title: Markdown with XSLT
tags: [tutorials]

---

###### tags: `tutorials`
# Markdown with XSLT

```
<dependency>
    <groupId>org.commonmark</groupId>
    <artifactId>commonmark</artifactId>
    <version>0.17.2</version>
</dependency>
```

```
Parser parser = Parser.builder().build();
Node node = parser.parse(資料庫內容);
HtmlRenderer renderer = HtmlRenderer.builder().build();
String html = renderer.render(node);
```

### 建立 xslt
```
Element exampleElement = document.createElement("example");
CDATASection cDATASection = document.createCDATASection(html);
exampleElement.appendChild(cDATASection);
```

### xsl
`<xsl:value-of disable-output-escaping="yes" select="example"/>`
