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

Sanitize markdown in GitHub entity titles #156

Closed
wants to merge 4 commits into from

Conversation

00-kat
Copy link
Contributor

@00-kat 00-kat commented Feb 16, 2025

Closes #149.

@@ -43,7 +44,8 @@ async def load_emojis() -> None:


def _format_mention(entity: Entity, kind: EntityKind) -> str:
headline = ENTITY_TEMPLATE.format(kind=kind, entity=entity)
title = escape_special(entity.title)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I should inline this; I liked the formatting with the new title variable more, and it's more consistent with the rest of them, so I kept it this way. Let me know if you want it changed.

@trag1c trag1c linked an issue Feb 19, 2025 that may be closed by this pull request
@trag1c trag1c deleted the branch ghostty-org:another-cleanup February 24, 2025 23:18
@trag1c trag1c closed this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants