Greg Wilson on Nostr: I now have several applications that use Python's Markdown module to convert Markdown ...
I now have several applications that use Python's Markdown module to convert Markdown to HTML, then immediately parse that HTML with Beautiful Soup so that I have a DOM I can manipulate before generating the final HTML. Is there an option I'm missing somewhere to convert Markdown directly to DOM?
Published at
2024-09-14 17:26:24Event JSON
{
"id": "bbfc739f4c10911a3e2ce8b5c4d4ffefda5041b6b81759e5fec8a818da4d3e30",
"pubkey": "471ec8585d6c2fd5f911c7a8444add9942c4b8e37365db2a1cb87c5e13c0df8f",
"created_at": 1726334784,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/gvwilson/statuses/113137076460098021",
"activitypub"
]
],
"content": "I now have several applications that use Python's Markdown module to convert Markdown to HTML, then immediately parse that HTML with Beautiful Soup so that I have a DOM I can manipulate before generating the final HTML. Is there an option I'm missing somewhere to convert Markdown directly to DOM?",
"sig": "986dace185c59ac54007eb02a9fea31bd8854e27b70960f9ea309e4bcc26fa715f0f0d58ccd3d2545b97158725ab0cd7021689c159b2cab063d380eea3059c61"
}