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"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s