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

fix glossary bugs #297

Merged
merged 1 commit into from
Aug 6, 2023
Merged

fix glossary bugs #297

merged 1 commit into from
Aug 6, 2023

Conversation

mruwnik
Copy link
Collaborator

@mruwnik mruwnik commented Aug 4, 2023

Copy link
Collaborator

@Aprillion Aprillion left a comment

Choose a reason for hiding this comment

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

other than the potential regression, LGTM 👍

@@ -173,7 +173,7 @@ export function Question({
const updateTextNodes = (el: Node, textProcessor: (node: Node) => Node) => {
Array.from(el.childNodes).forEach((child) => updateTextNodes(child, textProcessor))

if (el.nodeType == Node.TEXT_NODE && el.textContent && el?.parentElement?.tagName != 'A') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please check git commit for the old code, it was fixing (workarounding?) some previous bug - not sure which, but it deserves to be re-tested that removing the last condition won't reintroduce the previous bug 🤞

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it was checking whether the glossary item is part of a link, so it didn't display links as glossary items. But apparently the editors want that... :D

@mruwnik mruwnik merged commit dc2fdaf into master Aug 6, 2023
1 check passed
@mruwnik mruwnik deleted the glossary-bugs branch August 6, 2023 13:29
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