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

feature request: ability to filter a tag based on a callback #174

Open
BrianHicks opened this issue Dec 1, 2022 · 1 comment
Open

feature request: ability to filter a tag based on a callback #174

BrianHicks opened this issue Dec 1, 2022 · 1 comment

Comments

@BrianHicks
Copy link

I'm writing a tool to publish HTML from Obsidian. My tool only publishes a subset of rendered pages, and I'd like to be able to remove <a> tags that link to unpublished pages. It looks like ammonia can filter attributes based on a callback (yay!) but not yet tags—that'd be really helpful for me!

@fdemmer
Copy link

fdemmer commented Dec 15, 2023

I imagine such a callback would also be useful to preserve/recreate linebreaks in text for HTML structured with <br> or <p> tags.

edit: duplicate #164 ?

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

2 participants