# Markdown inline code works in editor but not preview

**URL:** <https://forum.ghost.org/t/markdown-inline-code-works-in-editor-but-not-preview/57413>\
**Category:** Developer help\
**Created:** [May 12, 2025, 4:01am UTC](https://forum.ghost.org/t/markdown-inline-code-works-in-editor-but-not-preview/57413 "2025-05-12T04:01:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaketheo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jaketheo/32/31448_2.png) [@jaketheo](https://forum.ghost.org/u/jaketheo)\
**Post date:** [May 12, 2025, 4:01am UTC](https://forum.ghost.org/t/markdown-inline-code-works-in-editor-but-not-preview/57413/1 "2025-05-12T04:01:55Z")

</div>

Hi. I’m writing in markdown and Ghost editor automatically parses any Markdown.

I’m trying to use `code` Markdown on certain words in an article. They display automatically in the Editor:

 ![Screenshot 2025-05-12 at 1.56.01 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/9/a/9a0b6daeff5fe9d8be6ca98e7999adeeb7794492.png)

But in preview, it just shows a larger font like this:

 ![Screenshot 2025-05-12 at 1.56.14 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/5/7/57c8ae549e90a03a3b490e73f0c2d39d4f70ec40.png)

How do I get the inline code to work properly on the published post?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 12, 2025, 5:36am UTC](https://forum.ghost.org/t/markdown-inline-code-works-in-editor-but-not-preview/57413/2 "2025-05-12T05:36:52Z")

</div>

It looks like the `code` styles your theme uses are not the same as the editor styles. You can’t change the editor styles, but you can change your theme styles using CSS. Which theme are you using?

---

<div class="post-metadata">

**Author:** ![jaketheo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jaketheo/32/31448_2.png) [@jaketheo](https://forum.ghost.org/u/jaketheo)\
**Post date:** [May 12, 2025, 5:51am UTC](https://forum.ghost.org/t/markdown-inline-code-works-in-editor-but-not-preview/57413/3 "2025-05-12T05:51:50Z")

</div>

> [@vikaspotluri123](#):
>
> but you can change your theme styles using CSS. Which theme are you using?

I’m using a customised version of the Porto theme and I can’t seem to find any references to code styles in the CSS. Is there a common selector for `code` styling?

Edit: Code injection worked with some CSS styling. Thanks!
