Skip to content

HTML Replacement Fix#8

Open
BraedynL0530 wants to merge 1 commit intowriteas:masterfrom
BraedynL0530:master
Open

HTML Replacement Fix#8
BraedynL0530 wants to merge 1 commit intowriteas:masterfrom
BraedynL0530:master

Conversation

@BraedynL0530
Copy link
Copy Markdown

The previous HTML regex only removed the opening < character, leaving tag names and attributes in the output.
For example,

content
was converted into div align="center">contentdiv>.

This change updates the regex to fully strip HTML tags instead of partially removing them.

It also removes leftover href URLs that remain after Markdown link stripping, which otherwise leak raw URLs into the output. If preserving HTML was intentional, feel free to ignore this change.

SHOULD fix the html and links issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant