You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/src/for_developers/preprocessors.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ be adapted for other preprocessors.
45
45
46
46
## Hints For Implementing A Preprocessor
47
47
48
-
By pulling in `mdbook` as a library, preprocessors can have access to the
48
+
By pulling in `mdbook-preprocessor` as a library, preprocessors can have access to the
49
49
existing infrastructure for dealing with books.
50
50
51
51
For example, a custom preprocessor could use the
@@ -60,9 +60,7 @@ chapters) or via the `Book::for_each_mut()` convenience method.
60
60
The `chapter.content` is just a string which happens to be markdown. While it's
61
61
entirely possible to use regular expressions or do a manual find & replace,
62
62
you'll probably want to process the input into something more computer-friendly.
63
-
The [`pulldown-cmark`][pc] crate implements a production-quality event-based
64
-
Markdown parser, with the [`pulldown-cmark-to-cmark`][pctc] crate allowing you to
65
-
translate events back into markdown text.
63
+
The [`mdbook-markdown`] crate exposes the [`pulldown-cmark`][pc] crate used by mdBook to parse Markdown. The [`pulldown-cmark-to-cmark`][pctc] crate can be used to translate events back into markdown text.
66
64
67
65
The following code block shows how to remove all emphasis from markdown,
0 commit comments