I’m not familiar with the subtleties of blackfriday, but, sometimes markdown parsers will force a <br> if you use two spaces. If $ means space, something like:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.$$
$$
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.$$
$$
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
I haven’t tried enabling that extension in config.toml, but it works when added to front matter.
Example
+++
title = "Hard line break (TOML)"
tags = ["blackfriday", "toml"]
draft = false
[blackfriday]
extensions = ["hardLineBreak"]
+++
a
b
c
Above, _a_, _b_ and _c_ must appear on separate lines.
I did try that, but I seemed to get the same result except not showing up in the hugo config output.
The config.toml is pretty minimal I’ve tried moving the blackfriday block around but it dosn’t do anything. And as the config command seems to be showing that hugo sees it. I can’t imagine how it would be the problem.
I have tried using two different version of Hugo, the one that came with my package manager and the newest one.
An example of a front matter I would use on a post would be:
+++
date = 2018-02-04T15:45:00-08:00
title = "Title "
categories = ["misc"]
header = "yellowheader"
author = "PBn"
rating = ""
marquee = "The marquee is just a custom summery for the front page"
[blackfriday]
extensions = ["hardLineBreak"]
+++
blah blah blah
It is worth noting that if I create a new Blank hugo site on the same computer and turn hardlinebreaks on it will work. So something has to have changed I just have no idea what I did.
Ah - this is how a [blackfriday] per Page config is done. I didn’t got it from the docs - but now it’s clear…
Blackfriday flags must be grouped under the blackfriday key and can be set on both the site level and the page level. Any setting on a page will override its respective site setting.
Hah, funny. I don’t use any blackfriday configuration in my personal sites. But while developing ox-hugo, and all the different test cases (250+ at the moment, thinking of wildest ways any user would set their post front-matter in Org files), I’ve learned so much about setting front-matter parameters, templating, debugging internal variables (1, 2), using page bundles, etc.