.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Mar 05, 2020 14:18 UTC.


This page was created/modified in commit 2f50f14 "Workaround for Blackfriday issue 239 for example blocks too" on 2018-06-25.
Markdown source of this page

Source block with list syntax in a list

categories: upstream

tags: src-block lists hyphen blackfriday


Description/Summary

An upstream bug in Blackfriday Issue #239 caused fenced code blocks in lists to not render correctly if they contain Markdown syntax lists. ox-hugo provides a hack to get around that bug. Below is an example of such a case: List item 1 ​- List item 1.1 in code block ​- List item 1.2 in code block List item 2 ​+ List item 2.1 in code block ​+ List item 2.


Content

An upstream bug in Blackfriday Issue #239 caused fenced code blocks in lists to not render correctly if they contain Markdown syntax lists. ox-hugo provides a hack to get around that bug.

Below is an example of such a case:

Another such example, but with space before a hyphen in source block:

  1. First item

    ports:
      foo: bar
  2. Second item

    ports:
     - port: 80
  3. Third item


Page (Debug)

Page VariableValue
Name "Source block with list syntax in a list"
Title "Source block with list syntax in a list"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/list-has-src-block-with-list-syntax/"
RelPermalink "/posts/list-has-src-block-with-list-syntax/"
Data
page.Data{} (type:page.Data)
NextPageSource block with list syntax but not in a list
PrevPageSource block without list syntax in a list
NextInSectionSource block with list syntax but not in a list
PrevInSectionSource block without list syntax in a list

Page Params (Debug)

KeyTypeValue
categories[]string "upstream"
datetime.Time 2017-08-01 00:00:00 +0000 UTC
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-06-25 07:52:04 -0400 -0400
publishdatetime.Time 2017-08-01 00:00:00 +0000 UTC
tags[]string "src-block" "lists" "hyphen" "blackfriday"
titlestring "Source block with list syntax in a list"

File Object (Debug)

FileInfo VariableValue
UniqueID "687c79003969dc3d9a2af946a9dfb38b"
BaseFileName "list-has-src-block-with-list-syntax"
TranslationBaseName "list-has-src-block-with-list-syntax"
Lang "en"
Section "posts"
LogicalName "list-has-src-block-with-list-syntax.md"
Dir "posts/"
Ext "md"
Path "posts/list-has-src-block-with-list-syntax.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.59.0-DEV (commit 5276f1e9, using Chroma commit 26f03cb) .
[Test Site home | ox-hugo home]