Skip to content

Commit

Permalink
revert workaround example in README.rst for <script> and <style> now …
Browse files Browse the repository at this point in the history
…that it is properly fixed (#115)

Signed-off-by: chrispy <chrispy@synopsys.com>
  • Loading branch information
chrispy-snps authored Mar 26, 2024
1 parent 2f9a42d commit 7d0bf46
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,22 +173,6 @@ change:
def md(html, **options):
return ImageBlockConverter(**options).convert(html)
.. code:: python
from markdownify import MarkdownConverter
class NoCssConverter(MarkdownConverter):
"""
Create a custom MarkdownConverter that removes the CSS code by ignoring the `style` tag
"""
def convert_style(self, el, text, convert_as_inline):
return ''
# Create shorthand method for conversion
def md(html, **options):
return NoCssConverter(**options).convert(html)
Command Line Interface
======================
Expand Down

0 comments on commit 7d0bf46

Please sign in to comment.