From 96ad4d87f28c534c19ca75d6e09d51fb680ed3c8 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 21 May 2024 16:40:31 +0200 Subject: [PATCH] Fix to clarify error --- docs/docs/what-is-mdx.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/what-is-mdx.mdx b/docs/docs/what-is-mdx.mdx index d90fa5594..ad2233f2a 100644 --- a/docs/docs/what-is-mdx.mdx +++ b/docs/docs/what-is-mdx.mdx @@ -318,9 +318,9 @@ So you *can* build incorrect HTML (which you shouldn’t): ``` It’s not possible to wrap “blocks” if text and tags are on the same line but the -corresponding tags are on different lines: +corresponding tags are on different lines (so this is invalid!): -```mdx +``` Welcome! This is home of... @@ -332,6 +332,7 @@ That’s because to parse markdown, we first have to divide it into “blocks” So in this case two paragraphs and a heading. Leaving an opening `a` tag in the first paragraph and a stray closing `a` tag in the heading. +Which causes an error. ## Further reading