hugo: Code blocks not rendered correctly in lists
This markdown:
- Hello<br>
bla bla
- Example<br>
```javascript
var message = 'hello';
console.log(message);
```
The <br> is also needed in Hugo for a line break in the list item, which differs from other generators.
Renders as:
- Hello bla bla
- Example
javascript var message = 'hello'; console.log(message);
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 6
- Comments: 16 (6 by maintainers)
Did the update from BlackFriday ever get merged into Hugo? I’m still seeing weird code-block stuff.
Here’s my Markdown for the image above:
I see. If you put a newline after the code block but not before it, the numbering is maintained.
If you put an empty line before the code block as well as after, the numbering is not maintained. I don’t know if that is expected behavior, but it is certainly surprising to me.
??
Works fine for me:
HTML