.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 Oct 09, 2018 14:48 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/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
NextPageInternal shortcode for table
PrevPageMulti-line footnote
NextInSectionInheriting tags
PrevInSectionMulti-line footnote

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2017-11-02 10:12:52 -0400 -0400
tags[]string "formatting"
titlestring "Multi-line bold"

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.50-DEV (commit d5d50e2f, using Chroma commit d5ca12b) .

[Back to Hugo Sandbox home]