I read many topics here relating to the markdown list format issues.
Tryed all sorts of types of spaces, empty lines, CSS ol, and ui settings, but i just cant get it to work.
The markdown list is either not displayed as one or not recognized by hugo.
Let’s see where i stucked now:
Markdown content file:
- Line 1
- Line 2
or
* Line 1
* Line 2
Tryed: 2,4 spaces everywhere. Also no spaces(what atleast breaks the line)
Enabled the hardWraps and unsafe html code, rest is default.
my actual CSS settings involving; li,ol,ul:
li { /*Format the list elements*/
float: left;
}
ol, ul { /*Format of the unordered HTML list*/
list-style-type: none;
list-style:none;
margin: 0;
padding: 0;
overflow: hidden;
}
Please let me know how it is done in HUGO… just a simple markdown list…and im using Obsidian since 2 years so not new to md but this is driving me crazy
Thank you
I had a look at the link you posted the other day, the html is really strange to me.
You have two opening html tags, one closing. Two opening body tags then two closing.
Three open footer tags, one closing footer tag.
Fix the structure first, maybe the lists look right then.
{{ partial "header.html" . }}
{{ define "main" }}
<main>
<article>
<header>
<h3>{{.Title}}</h3>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}
index.html
{{ define "main" }}
<main aria-role="main">
<header>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
<div>
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
</main>
{{ end }}
maybe some of those “main” parts are not needed? i dont realy managed to find out yet what is to much and what is needed
So tomorrow i will then start to delete parts of the code and see by trial and error what makes it leaner or break it totaly. If you could please provide me some hints what looks the most suspicious and i start with those. TY for today and Good night
I generaly cleaned up / removed all kinds of unnecessary code from the layout files but that was not the issue.
The “problem” was in the CSS.
I did generate menu by moving my objects to the left close to eacother.
By removing the float: left formating md list got rendered