revert workaround example in README.rst for <script> and <style> now that it is properly fixed (#115)
Signed-off-by: chrispy <chrispy@synopsys.com>
This commit is contained in:
committed by
GitHub
parent
2f9a42d3b8
commit
7d0bf46057
16
README.rst
16
README.rst
@@ -173,22 +173,6 @@ change:
|
|||||||
def md(html, **options):
|
def md(html, **options):
|
||||||
return ImageBlockConverter(**options).convert(html)
|
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
|
Command Line Interface
|
||||||
======================
|
======================
|
||||||
|
|||||||
Reference in New Issue
Block a user