Here is a sample of markdown. I am trying to have space between paragraphs and bulleted lists. Based on what I understand of markdown, I should have spaces appearing between these paragraphs (double returns at the end of one) and bulleted lists (choice of - or *, at least, to create lists). Neither of these is working.
Hey @Jupeman â I see you! This looks like Markdown isnât being parsed, or itâs parsed but all the default margins got nuked by Tailwindâs reset. Hence: no bullets, no paragraph gaps. Classic.
Quick checks (in order):
Using CMS? Make sure the page is .php and youâre using Static Item (or Collection â Collection Item) â Body inside it.
From doc.txt and the Elements Manual: CMS pages must be .php or PHP wonât run, and Body is the component that renders your Markdown to HTML.
Pasted Markdown into a Text component? That will show raw Markdown. Swap it for:
CMS flow: Static Item â Body
NonâCMS: the Markdown component
Markdown renders but spacing is tight? Tailwind preflight sets margin: 0, so you need content styles.
Wrap your Body/Markdown in a Container, give that container a class of cms-content (Component â Advanced â CSS Classes), then add this CSS (Project Settings â Code â CSS or Theme Studio â Custom CSS):
.cms-content p { margin: 1rem 0; }
.cms-content ul, .cms-content ol { margin: 1rem 0 1rem 1.25rem; }
.cms-content li { margin: 0.25rem 0; list-style: disc; }
Markdown syntax sanity:
Lists need a blank line before them, and a space after the marker:
Item one
Item two
If you want, drop a URL or a tiny project export and Iâll peek. Looping in @ben if it turns out to be something deeper in the CMS.
P.S. Elements Bot can hallucinate on occasion. Double-check me against the manual: Welcome | RapidWeaver Elements Docs â Elements moves fast!
Nice! I canât open elementsapp:// links from inside the forum (Elements Bot isnât allowed outside the sandbox⌠rude). Could you zip the project (.elements file) and attach it here, or share a published URL? Then I can poke it properly.
Fast fix while we wait:
If youâre using the CMS
Make sure the page filename ends in .php (doc.txt + Elements Manual both note CMS pages must be .php).
Use Static Item (or Collection â Collection Item) â Body to render Markdown. Body is the bit that turns MD into HTML (called out in doc.txt and the manual).
If you dropped Markdown into a Text component
Swap it for the Markdown component (nonâCMS), or use Body (CMS). Text will show raw MD.
Add sensible content styles (Tailwindâs reset can nuke margins/list styles). Wrap your Body/Markdown in a Container, set CSS Class to cms-content, then add this CSS in Project Settings â Code â CSS:
.cms-content p { margin: 1rem 0; }
.cms-content ul, .cms-content ol { margin: 1rem 0 1rem 1.25rem; padding-left: 1.25rem; }
.cms-content ul li { list-style: disc; }
.cms-content ol li { list-style: decimal; }
.cms-content li { margin: 0.25rem 0; }
Markdown sanity check
Leave a blank line before lists, and include a space after - or *:
Notes mirrored in the uploaded doc.txt (Body component, .php requirement, Markdown/frontmatter structure).
If this doesnât sort it, ping me back with a zip or URL and Iâll dig in. Looping in @ben if it turns out to be deeper. And yes, Iâm an AI goblin â I can be wrong, so doubleâcheck me against the manual.
Found 51 results for 'Markdown lists bullets CMS Body Tailwind Elements order:latest'
No worries, Jupeman â Discourse is allergic to .zip. Two options:
Share a link: iCloud, Dropbox, Google Drive, or WeTransfer. Anyone with the link can grab the .elements file.
Or paste just the bits I need:
The page filename (does it end with .php?)
Your component tree for that page (screenshot is fine)
The cms folder structure and one markdown file (front matter + a few lines of content)
Quick âknown goodâ setup you can try now (from doc.txt and the Elements Manual: CMS pages must be .php and you must render via Body):
Content file
Create cms/pages/terms.md with:
title: âTermsâ
date: â2025-04-20â
status: published
These termsâŚ
Item one
Item two
Page in Elements
Make the page filename end in terms.php
Add Static Item
Collection path: pages
Item slug: terms
Inside it, add Body
Wrap Body in a Container, set CSS Classes (Advanced) to: cms-content
Add basic content styles (Project Settings â Code â CSS):
.cms-content p { margin: 1rem 0; }
.cms-content ul, .cms-content ol { margin: 1rem 0 1rem 1.25rem; padding-left: 1.25rem; }
.cms-content ul li { list-style: disc; }
.cms-content ol li { list-style: decimal; }
.cms-content li { margin: 0.25rem 0; }
Why this fixes it:
If Body isnât used inside Static Item/Collection Item, Markdown wonât be parsed (doc.txt + Manual).
Tailwindâs reset nukes default margins/list-styles, so we add them back.
If that doesnât do it, toss me a Drive/Dropbox link and Iâll poke deeper. If it smells like a CMS bug, Iâll rope in @ben. And yep, Elements Bot can be wrong â please sanity-check me against the Manual: Elements CMS | CMS | RapidWeaver Elements Docs. Elements moves fast!
Iâm having the same problem right now when importing my Markdown files that I want to bring over from Alloy into Elements. The frontmatter in Elements doesnât seem to be fully Markdown-compliant yet, as far as I can tell.
@ben@dan
Can we assume thereâll be a fix for this soon?
My current workaround for a line break is using <br>
I took a look at your project and saw you were using a Text component to display the {{item.body}} â you should be using a Typography component for this.
Once you use the Typography component, you can control the styling of things like H1, H2, p, code, etc. via the Theme Studio.
One thing that is not supported in the Typography component / styling are lists. If you want to use and style lists youâll have to add some custom css code for now. You can do this by adding some code to your projectâs template. Something like this would work:
Iâm curious as to which component you are targeting with your Markdown files?
I use the Typography component as it seems to handle all of the line breaks and other styling just fine. Of course, it doesnât support any lists or tables, and you cannot embed images. But other than that, it works fine for me.
All of my Markdown files also originated in Alloy, but I cleaned up the frontmatter.
I havenât tried this out in depth but I think you can do this.
In the Theme Settings, Select Typography and create a new Custom Typography theme, call it say âmarkdownâ.
Then in your Typography Component containing your markdown, in the inspector you can select the Typography Style as 'markdown. Back in your Custom theme you can alter the settings for H1 / H2 / Paragraph etc and they should be applied to your typography component.
Typography, got it. But I still donât see line breaks. Iâll just ignore lists for now as Iâm not sure I follow how to apply the code snippet to the sections I want to have as bullets/lists. Any help on why Iâm not seeing line breaks? Iâve double returned in the markdown where I want to see a break between paragraphs.
Make sure in your typography settings in the Theme Studio that you have the paragraph option set up to have a margin after a paragraph. You can set both top and bottom, or you can just use the bottom for your settings.