From fe4e13db1cbd491f7464f489afb358f84e97d684 Mon Sep 17 00:00:00 2001 From: Hugh Cameron Date: Mon, 22 Apr 2024 14:51:38 +1000 Subject: [PATCH] Use raw HTML which is better for Markdown --- markline/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markline/__init__.py b/markline/__init__.py index bc0730a..aa01867 100644 --- a/markline/__init__.py +++ b/markline/__init__.py @@ -726,7 +726,7 @@ def counts(self, *locations: CSSLocator | TagLocator | str) -> dict: def render( self, input_format: str = "html-native_divs-native_spans", - output_format: str = "gfm", + output_format: str = "gfm-raw_html", output_options: List[str] = ["--wrap=none"], ) -> str: """Render the draft HTML content to a Pandoc formatted output. @@ -742,7 +742,7 @@ def render( Defaults to "html-native_divs-native_spans". This is recommended to preserve only the necessary HTML tags and attributes. output_format (str, optional): A Pandoc supported format. - Defaults to "gfm" or Github Flavored Markdown (GFM). + Defaults to "gfm-raw_html" or Github Flavored Markdown (GFM). output_options (List[str], optional): A list of Pandoc write options. Defaults to ["--wrap=none"]. See available options: https://pandoc.org/MANUAL.html#options