Markdown Not Rendering Correctly

Hi, I’m trying to start with hugo. Long story short (after some struggling) I’m now running hugo server --theme=hyde-x --buildDrafts --watch. But my first.md is not getting rendered correctly. Can someone help?

This is the Markdown:
+++
date = “2015-12-17T15:22:53+03:30”
draft = true
title = “first”

+++

# first

## title

> block quote
> continued
>
> nest line
>
> > and nested
> > ### header
> >
> > 1. item
> > 2. another item

* i1
* i2

And I get this:

Have you had a look with your browser’s web inspector console to see what HTML is actually being generated for your body copy? Looks like there may be no tags surrounding any of that text at all.

I’ve just loaded your content into one of my own Hugo themes and it displayed as it should [for that theme]:

+++
date = "2015-12-17T15:22:53+03:30"
title = "first"
draft = true
type = "post"
+++


# first

## title

> block quote
> continued
>
> nest line
>
> > and nested
> > ### header
> >
> > 1. item
> > 2. another item

* i1
* i2

So, the markdown and front-matter themselves are fine. It looks like the problem lies in your theme somewhere.

Thanks, but even after changing the theme (hugo server --theme=hugo-redlounge --buildDrafts --watch) I have the same problem. This is the 3rd time I download hugo in last year & just get frustrated with little things & give up! I really like the nature of hugo as a static site generator but there should be an initial working set there.

Since I’m on Windows, it seems it’s a CRLF vs LF thing. Yet some things are getting rendered not as expected such as block-quotes.

Thanks;

Finally! It’s working! Thanks for amazingly fast Hugo! :slight_smile:

Hi, I’m having the same problem here. Markdown is not rendered at all and headlines are not detected and displayed in the navigation. In the HTML there is only plain text, where the rendered markdown should be.

The markdown:

---
date: 2017-01-19T13:41:46+01:00
title: Hugo Test 
weight: 20
---

# title 
## subtitle 

This is a **test** for rendering markdown with _Hugo_.

- item1
- item2

The output:

I am using hugo v0.18.1 on Max OS X 10.11.6, installed via brew with the material-doc theme.

▶ hugo version
Hugo Static Site Generator v0.18.1 BuildDate: 2016-12-29T18:12:41+01:00

I tried also with the binary downloaded directly as well as the older version v0.18.
As I am on Mac OS X, I don’t think its related to a CRLF problem (all newlines are LF).
Also the pages are rendered correctly for other people and on our production server.

Any ideas, what this might be?

UPDATE

I isolated this problem to hugo versions v0.18 and v0.18.1 for Linux and Mac OS X. In version v0.17 it works fine. It might be related to the material-doc theme also, I haven’t tested with other themes yet.

Try putting quotes around strings, e.g.:

---
date: "2017-01-19T13:41:46+01:00"
title: "Hugo Test" 
weight: 20
---

I don’t know if this matters in YAML, but in TOML I’ve fixed some issues in Hugo 18.1 by putting quotes around strings.