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

Add strikethrough support #280

Merged
merged 4 commits into from
Nov 21, 2024
Merged

Add strikethrough support #280

merged 4 commits into from
Nov 21, 2024

Conversation

NALStudio
Copy link
Contributor

Before After
before after

This is a simple change, but the code might need more refactoring as currently if any invalid emphasis is detected, the entire text rendering is skipped. I'd like to have it so that invalid/unsupported emphasis is drawn with a red background so that it is clearer to the user when errors happen instead of just hiding the text completely. That feature was out of the scope of this PR, though I can add it in a separate PR if this idea sounds like something worth pursuing.

@MihailsKuzmins
Copy link
Member

Thanks for the PR.

if any invalid emphasis is detected, the entire text rendering is skipped. I'd like to have it so that invalid/unsupported emphasis is drawn with a red background so that it is clearer to the user when errors happen instead of just hiding the text completely.

About your comment, I think the approach is valid, but it will probably be better to keep the original text as it is. The same approach with the tables in #276

@MihailsKuzmins MihailsKuzmins self-assigned this Nov 20, 2024
@NALStudio
Copy link
Contributor Author

Requested changes made :)

@MihailsKuzmins MihailsKuzmins merged commit 4e7ced2 into MyNihongo:main Nov 21, 2024
5 checks passed
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.

2 participants