.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Jan 20, 2022 13:08 UTC.


This page was created/modified in commit 669d193 "Copy ox-hugo test site" on 2017-11-02.
Markdown source of this page

Multi-line bold

tags: formatting


Description/Summary

This works fine as the bold sentence does not include a newline. This is a sentence that should render completely in bold. It is broken across multiple lines (in Org source) because of auto-filling. But that should not break the bold rendering. But it does by default. If you do not see the above paragraph completely in bold, have below in your emacs config to fix it: (with-eval-after-load 'org ;; Allow multiple line Org emphasis markup.


Content

This works fine as the bold sentence does not include a newline.

This is a sentence that should render completely in bold. It is broken across multiple lines (in Org source) because of auto-filling. But that should not break the bold rendering. But it does by default.

If you do not see the above paragraph completely in bold, have below in your emacs config to fix it:

(with-eval-after-load 'org
  ;; Allow multiple line Org emphasis markup.
  ;; http://emacs.stackexchange.com/a/13828/115
  (setcar (nthcdr 4 org-emphasis-regexp-components) 20) ;Up to 20 lines, default is just 1
  ;; Below is needed to apply the modified `org-emphasis-regexp-components'
  ;; settings from above.
  (org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-components))

Page (Debug)

Page VariableValue
Name "Multi-line bold"
Title "Multi-line bold"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/multi-line-bold/"
RelPermalink "/posts/multi-line-bold/"
Data
page.Data{} (type:page.Data)
NextPageInternal shortcode for table
PrevPageMulti-line footnote
NextInSectionInheriting tags
PrevInSectionMulti-line footnote

Page Params (Debug)

maps.Params{"draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "tags":[]string{"formatting"}, "title":"Multi-line bold"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "211d715e890ef96b77b541c78502c2d2"
BaseFileName "multi-line-bold"
TranslationBaseName "multi-line-bold"
Lang "en"
Section "posts"
LogicalName "multi-line-bold.md"
Dir "posts/"
Ext "md"
Path "posts/multi-line-bold.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.92.0 (commit b3549403) .

[Back to Hugo Sandbox home]