Skip to content

Commit 8569eaa

Browse files
committed
Link to Moon
1 parent 3de7eeb commit 8569eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ pre[data-title]::before {
6767
}
6868
```
6969

70-
7170
## Modifying the generated HTML
7271
Parsley doesn't come with a plugin system, it relies purely on `cmark-gfm` under the hood to render Markdown to HTML. If you want to modify the generated HTML, for example if you want to add `target="blank"` to all external links, [SwiftSoup](https://github.com/scinfu/SwiftSoup) is a great way to achieve this.
7372

74-
Adding a plugin system on top of `cmark` would mean that Parsley could no longer rely on the outstanding output of `cmark`; instead Parsley would have to parse its AST and generate HTML based on that itself, thus reinventing the (very complex) wheel.
73+
## Code block syntax highlighting
74+
If you want to add syntax highlighting to the code blocks, you could use a client-side JavaScript library such as [Prism](https://prismjs.com) or [highlight.js](https://highlightjs.org). Or for a server-side solution, check out [Moon](https://github.com/loopwerk/Moon), which runs Prism in Swift.

0 commit comments

Comments
 (0)