Skip to content

Conversation

@StefonSimmons
Copy link
Contributor

display info on self-closing and inline Tags.

@vercel
Copy link

vercel bot commented Mar 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
markdoc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 5:54pm
markdoc-simple-nextjs ❌ Failed (Inspect) Mar 26, 2025 5:54pm

@cla-assistant
Copy link

cla-assistant bot commented Mar 26, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@matv-stripe matv-stripe left a comment

Choose a reason for hiding this comment

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

good catch, thank you!

@StefonSimmons
Copy link
Contributor Author

StefonSimmons commented Mar 27, 2025

good catch, thank you!

hey @matv-stripe, although this is missing from the docs. im noticing on my end that content within inline tags are not automatically wrapped with a single paragraph (<p> tag). Are you experiencing the same?

@matv-stripe matv-stripe requested a review from segphault March 28, 2025 21:50
@segphault
Copy link

im noticing on my end that content within inline tags are not automatically wrapped with a single paragraph (

tag). Are you experiencing the same?

The behavior that you should see is that the inline tag itself gets wrapped in a p, not the content within it. For example, if you have this by itself on a line:

{% foo %}test{% /foo %}

It should render as though it is the following, assuming that the tag foo is mapped to a React component Foo:

<p><Foo>test</Foo></p>

@segphault segphault merged commit 5c3cb88 into markdoc:main Apr 2, 2025
3 of 4 checks passed
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