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

Adding backticks to code block titles breaks callout tags #6274

Open
EatonEmmerich opened this issue Mar 3, 2025 · 0 comments
Open

Adding backticks to code block titles breaks callout tags #6274

EatonEmmerich opened this issue Mar 3, 2025 · 0 comments

Comments

@EatonEmmerich
Copy link

Which Fern component?

Fern Docs

How urgent is this?

P2 - Medium (Would be helpful)

What's the issue?

With a fern documentation project, use a callout tag, example:

<Warning title="some warning here.">
</Warning>

Save, generate docs (fern generate --docs --preview), all is well.
Then add the code block with the title with quotes:

<Warning title="some warning here.">
```bash some `script.sh` code here:
curl -X GET www.example.com
```
</Warning>

Generating it I get the error:

Unexpected closing slash / in tag, expected an open tag first

Removing the ` from the title and the generation is successful

Fern CLI & Generator Versions

https://github.com/fern-api/fern.git packages/cli/cli version 0.44.11

Workaround

remove ` from the code block title inside the callout

Logs & Additional Context

No response

Are you interested in contributing a fix?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant