diff --git a/packages/openneuro-app/src/scripts/dataset/__tests__/__snapshots__/snapshot-container.spec.tsx.snap b/packages/openneuro-app/src/scripts/dataset/__tests__/__snapshots__/snapshot-container.spec.tsx.snap index 2b448e93c9..3ca7a3777b 100644 --- a/packages/openneuro-app/src/scripts/dataset/__tests__/__snapshots__/snapshot-container.spec.tsx.snap +++ b/packages/openneuro-app/src/scripts/dataset/__tests__/__snapshots__/snapshot-container.spec.tsx.snap @@ -516,25 +516,25 @@ Description: Rhyme judgment 3/21/2013: Updated release with QA information

- This dataset is made available under the Public Domain Dedication and License -v1.0, whose full text can be found at + This dataset is made available under the Public Domain Dedication and License +v1.0, whose full text can be found at http://www.opendatacommons.org/licenses/pddl/1.0/ - . -We hope that all users will follow the ODC Attribution/Share-Alike + . +We hope that all users will follow the ODC Attribution/Share-Alike Community Norms ( http://www.opendatacommons.org/norms/odc-by-sa/ - ); -in particular, while not legally required, we hope that all users -of the data will acknowledge the OpenfMRI project and NSF Grant + ); +in particular, while not legally required, we hope that all users +of the data will acknowledge the OpenfMRI project and NSF Grant OCI-1131441 (R. Poldrack, PI) in any publications.

diff --git a/packages/openneuro-app/src/scripts/utils/markdown.tsx b/packages/openneuro-app/src/scripts/utils/markdown.tsx index 1beb4f3f28..03ee5db8cd 100644 --- a/packages/openneuro-app/src/scripts/utils/markdown.tsx +++ b/packages/openneuro-app/src/scripts/utils/markdown.tsx @@ -159,9 +159,11 @@ export function Markdown({ children }: MarkdownProps) { ALLOWED_ATTR, ALLOW_ARIA_ATTR: false, }) + /* Work around MarkdownToJsx inefficiency */ + const trimmed = sanitizedMarkdown.replace(/ +$/gm, '') return ( <> - {sanitizedMarkdown} + {trimmed} ) }