We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60967c1 commit a2f8267Copy full SHA for a2f8267
README.rst
@@ -173,6 +173,22 @@ change:
173
def md(html, **options):
174
return ImageBlockConverter(**options).convert(html)
175
176
+.. code:: python
177
+
178
+ from markdownify import MarkdownConverter
179
180
+ class NoCssConverter(MarkdownConverter):
181
+ """
182
+ Create a custom MarkdownConverter that removes the CSS code by ignoring the `style` tag
183
184
+ def convert_style(self, el, text, convert_as_inline):
185
+ return ''
186
187
+ # Create shorthand method for conversion
188
+ def md(html, **options):
189
+ return NoCssConverter(**options).convert(html)
190
191
192
193
Command Line Interface
194
======================
0 commit comments