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

can't use markdown footnote on mdx #449

Open
hanbyul-here opened this issue Feb 1, 2023 · 1 comment
Open

can't use markdown footnote on mdx #449

hanbyul-here opened this issue Feb 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hanbyul-here
Copy link
Collaborator

hanbyul-here commented Feb 1, 2023

MDX seems to offer its wrapper for the footnote, which breaks the container style of the page.
The code below

...
    [Explore How COVID-19 Is Affecting Earth's Climate](/covid19/discoveries/climate/climate-change-and-covid "Explore How COVID-19 Is Affecting Earth's Climate")[^1]
  </Prose>
</Block>


<Block type="wide">
  <Prose>
  [^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras purus nisi, eleifend quis blandit sed, efficitur id sem. Nullam a orci odio. In vel nulla sit amet dolor egestas tempor. Nullam viverra, purus vel egestas cursus, risus turpis condimentum risus, sed consequat nisl lectus non arcu. Phasellus eu purus non augue faucibus dapibus eget vitae nisi. Sed quam ipsum, malesuada ut porta ac, sagittis rhoncus sem. Maecenas scelerisque auctor nisl eget lobortis. Etiam orci felis, euismod quis mattis non, pulvinar at nulla. Fusce at purus vel ex condimentum porta. Sed tem
  </Prose>
</Block>

will result in a stretched container like the one below.

Screen Shot 2023-02-01 at 2 33 36 PM

@hanbyul-here hanbyul-here added the bug Something isn't working label Feb 1, 2023
@stephenkilbourn
Copy link
Contributor

This may have been resolved somewhere else. The overflow is no longer occurring if I try to reproduce:
Screenshot 2023-12-26 at 12 31 31 PM

vs without the footnote:
Screenshot 2023-12-26 at 12 35 09 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants