0

I am not sure if there is a correct way to do this in markdown. I have some text as below

* lorem ipsum dola sit amet a hungry dog--
  * hungry dog;
  * dog hungry;  
both dogs are hungry

Rendering looks like this:

  • lorem ipsum dola sit amet a hungry dog--
    • hungry dog;
    • dog hungry;
      both dogs are hungry

"both dogs are hungry" is a continuation of the sentence before the sublist. I want that text to be aligned with the word 'lorem' rather than the sublist (currently, it is using a line break to appear below the list). Is this possible?

Giacomo1968
  • 55,001

1 Answers1

0

If I understood correctly, the following is the required markdown source if using Pandoc:

- lorem ipsum dola sit amet a hungry dog--
  • hungry dog;
  • dog hungry;

both dogs are hungry

There are two spaces before the two dashes as well as the phrase “both dogs are hungry”. The following is the HTML5 output from Pandoc:

HTML5 output

And the output's source:

<ul>
<li><p>lorem ipsum dola sit amet a hungry dog–</p>
<ul>
<li>hungry dog;</li>
<li>dog hungry;</li>
</ul>
<p>both dogs are hungry</p></li>
</ul>
Giacomo1968
  • 55,001
  • You know, this site runs on markdown. So you can actually just set the markdown as described and the text will render as expected and shown in your pic. – Giacomo1968 Apr 28 '22 at 23:34
  • There will be other lists below the example. I use Hugo which uses Goldmark by default. – user18336975 Apr 29 '22 at 09:08