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

feat: add footnotes functionnality to richtext #2071

Merged
merged 63 commits into from
Jan 31, 2025

Conversation

derschnee68
Copy link
Collaborator

No description provided.

if (targetElement.nodeName.toLowerCase() === 'footnote') {
const content = targetElement.getAttribute('content');
if (content === null) {
throw new AppError('Footnote content is null');
Copy link
Contributor

Choose a reason for hiding this comment

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

use translations

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

intended for the dev

@@ -22,6 +23,51 @@ describe('Resource', () => {
});
});

describe('footnotes', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

there might be more tests with footnotes, I suggest moving them to a separate test file

Copy link
Collaborator

@mpro7 mpro7 left a comment

Choose a reason for hiding this comment

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

Mainly stylistic improvements, please check below:

Copy link
Collaborator

@mpro7 mpro7 left a comment

Choose a reason for hiding this comment

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

Thanks for fixes and answers. From my side it's ok, but what about github-advanced-security comment about Math.random()?

@derschnee68 derschnee68 merged commit d8b71d7 into main Jan 31, 2025
14 checks passed
@derschnee68 derschnee68 deleted the julien/fixfootnotes-issues branch January 31, 2025 13:57
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.

3 participants