Skip to content

Commit bfa2579

Browse files
committed
fix(template): rename long blog post to .mdx to preserve MDX comment
Follow-up to 3129d39: prettier was mangling `{/* truncate */}` into `{/_ truncate _/}` because the file extension was `.md`, causing it to be parsed as Markdown where `*` is emphasis. Renaming to `.mdx` lets prettier preserve the MDX comment syntax intact.
1 parent 3129d39 commit bfa2579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/create-docusaurus-openapi-docs/templates/default/blog/2019-05-29-long-blog-post.md renamed to packages/create-docusaurus-openapi-docs/templates/default/blog/2019-05-29-long-blog-post.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is the summary of a very long blog post,
99

1010
Use a `{/* truncate */}` comment to limit blog post size in the list view.
1111

12-
{/_ truncate _/}
12+
{/* truncate */}
1313

1414
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
1515

0 commit comments

Comments
 (0)