question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not rendered as markdown.

See original GitHub issue

Problem

I wrote this in src/routes/blog/posts/text.svx.

---
title: "My blog post"
createdAt: 2022-03-18
updatedAt: 2022-03-20
layout: blog_active
---

# Title

Some text

- a
- short
- list

However, when I access http://localhost:3000/blog/posts/test, it shows up as plain text like this.

CleanShot 2022-03-20 at 10 59 27

Do I need to do any additional configuration?

Environments

  • SvelteKit v1.0.0-next.301
  • MDsveX v.0.10.5(Installed using svelte-add)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
pngwncommented, Mar 27, 2022

Looks like you need to include the theme CSS, which mdsvex does not inject for you: https://mdsvex.pngwn.io/docs#highlight.

Theme CSS can be found here: https://github.com/PrismJS/prism-themes

0reactions
ymgn9314commented, Mar 24, 2022

Oops, I just noticed that the coding highlighting for js, etc. doesn’t seem to be working.

Here is the minimum app code that can reproduce the problem. The setup procedure I did is in the README.

You can reproduce it by access to http://localhost:3000/test.

https://github.com/ymgn9314/testing_svelte_mdsvex

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub markdown not rendering and git detecting changes ...
Very frequently when I type in headings such as # heading or ## sub-heading , the heading does not render correctly. Here is...
Read more >
Some Markdown elements do not render · Issue #505 - GitHub
The text is rendered as-is, with no formatting and with ## and * still present.
Read more >
Markdown: file is not rendering properly | Bitbucket Cloud - Jira
It was just a problem with cache/cookies. I saw in the inspector of my browser that a request for the rendered version of...
Read more >
Readme markdown not rendering in Xcode - Apple Developer
In Xcode 11.1, I created a 'README.md' markdown file, but it always renders as its raw text (yet font size changes depending on...
Read more >
README.md not rendering as markdown : r/github - Reddit
I have a README.md file in my repo but it is not rendering as markdown, it is plan text. Does anyone know what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found