Skip to content

Commit 92e0d47

Browse files
authored
Merge pull request typedoc2md#24 from remyrylan/fenced-codeblocks
Make turndown default to using fenced code blocks
2 parents 5bd2e1f + d7ceba4 commit 92e0d47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/theme/helpers/getMarkdownFromHtml.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ const turndownService = new TurndownService();
66
* @param options
77
*/
88
export function getMarkdownFromHtml(options: any) {
9-
return turndownService.turndown(options.fn(this));
9+
return turndownService.turndown(options.fn(this), {
10+
codeBlockStyle: 'fenced',
11+
});
1012
}

0 commit comments

Comments
 (0)