Skip to content

My site shows raw code instead of rendering it #2222

Discussion options

You must be logged in to vote

Welcome @kemalgencay!

The issue is the syntax you used in your post: https://github.com/kemalgencay/yeni/blob/4a89b529c6170ae3b2eb93a89db64551544730fb/content/yazi/05/quote.mdx
Markdown and MDX treat significantly indented content as a code block, if you don't want it to be a codeblock, start content without indent.

To learn more about how markdown and MDX work, checkout https://commonmark.org/help/ and https://mdxjs.com/docs/what-is-mdx/#mdx-syntax

Tying that back to your example post:

your current MDX code, with in a indented code block (click to expand)
---
title: "Quote example"
date: "2022-12-22"
variant: yazi
---

    	body {
    		font: 13px/1.5 arial, helvetica, sans-serif;
    	}

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kemalgencay
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants