Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How drop <p> & </p> tags #894

Open
ivanvorobei opened this issue Dec 25, 2024 · 0 comments
Open

How drop <p> & </p> tags #894

ivanvorobei opened this issue Dec 25, 2024 · 0 comments

Comments

@ivanvorobei
Copy link

ivanvorobei commented Dec 25, 2024

I preparing Parsedown for special html formatting for telegram bot. There aren't using <p> tags at all and lists. For list it was easy

class GPTParsedown extends Parsedown
{
    protected function blockList($Line, array $Block = null)
    {
        return null;
    }
}

but how to drop <p> tags?

as well will be cool have kind of allowed list tags, and other tags just dropping

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

No branches or pull requests

1 participant