Mayil-AI-Sandbox / pythonmarkdown

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Embedded RAW HTML within markdown not being restored into the returned document #2

Open vikramsubramanian opened 2 months ago

vikramsubramanian commented 2 months ago

When I run this, the output does not contain the HTML embedded within it-

import markdown

somemd = """
Our package should be able to handle HTML in markdown files. Here is an example markdown file with HTML:
'''
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>
'''
But there is a bug

"""

html = markdown.markdown(somemd)
print(html)
print("---------------------------------")

Returned output:

<p>Our package should be able to handle HTML in markdown files. Here is an example markdown file with HTML:
'''</p>
<p>wzxhzdk:0</p>
<p>wzxhzdk:1</p>
<p>'''
But there is a bug</p>
("---------------------------------")

Expected output:

<p>Our package should be able to handle HTML in markdown files. Here is an example markdown file with HTML:
'''</p>
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>
<p>'''
But there is a bug</p>
mayil-ai[bot] commented 2 months ago

Here are some code snippets that may help you get started:

We don't have enough information to help you with this right now. Mayil will automatically rerun once we have gathered enough context.