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

Markdown links doesn't work after any html tag #8558

Closed
7 tasks done
birvl97 opened this issue Jan 17, 2023 · 1 comment
Closed
7 tasks done

Markdown links doesn't work after any html tag #8558

birvl97 opened this issue Jan 17, 2023 · 1 comment
Labels
domain: markdown Related to Markdown parsing or syntax external This issue is caused by an external dependency and not Docusaurus.

Comments

@birvl97
Copy link

birvl97 commented Jan 17, 2023

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Following md file:

<b>Something</b> [LINK](./some.md)

Will be rendered as plain text, insted of bold text with clickable link.

Reproducible demo

No response

Steps to reproduce

Open sandbox and see at 17th line, line was changed from:

- [Node](link) ...

to:

- <b>node</b> [Node](link)

Instresting, if add some text before tag, e.g:

Something <b>bold</b> [Link]()

It will work fine, looks very similar with issue, but this example works fine in https://mdxjs.com/playground/

Expected behavior

Md should render properly. so I mean like this Some LINK

Actual behavior

Got md link rendered as plain text :cry

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

  • I'd be willing to fix this bug myself.
@birvl97 birvl97 added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Jan 17, 2023
@Josh-Cena
Copy link
Collaborator

Hi! Docusaurus uses MDX v1, so if you are experimenting, make sure to use the v1 playground: https://mdx-git-renovate-babel-monorepo-mdx.vercel.app/playground/

This is a documented limitation here: https://docusaurus.io/docs/markdown-features/react#markdown-and-jsx-interoperability Namely, "A paragraph starting with a JSX tag will be seen entirely as a JSX string". This will be fixed by the MDX v2 migration.

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2023
@Josh-Cena Josh-Cena added domain: markdown Related to Markdown parsing or syntax external This issue is caused by an external dependency and not Docusaurus. and removed bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: markdown Related to Markdown parsing or syntax external This issue is caused by an external dependency and not Docusaurus.
Projects
None yet
Development

No branches or pull requests

2 participants