Tag Archives: Markdown

A Page Break in Markdown (ReText)

Since I started to use Markdown, I’ve found it helpful to use the ReText editor in ‘Live Preview’ mode (Ctrl-L) so I can write Markdown markup language in the left-hand window and see What I Got in the right-hand window. It’s easy to forget that there is no official standard for Markup, so when you want to do something ‘none standard’, different implementations may have handled your problem their own way. Some answers I found didn’t work.

I wanted to force a page-break when I print out a cheat-sheet I’ve written and intend to update, as I  learn emacs key-bindings. There are several already but things weren’t arranged in an order that was helping me to learn which keys work in the Linux bash shell (another command-line editor option is available but emacs is the default.)

ReText supports something that appears to be based on HTML/CSS. Other interpreters use LaTeX syntax. In ReText, page-break-before style is applied after the text you want to appear at the top of the new page.

"...some text from the previous page

## New Section Title {: style="page-break-before: always" }

Text on new page"