Skip to main content
All CollectionsAuthor HelpMarkdown and Markua
I Want to Continue a Paragraph After a List, How Do I Do That?
I Want to Continue a Paragraph After a List, How Do I Do That?

Keywords: Markua, continued-para, author, list, continued paragraph, how

Leanpub Support avatar
Written by Leanpub Support
Updated over 8 months ago
I Want to Continue a Paragraph After a List, How Do I Do That?

Markua has two ways of continuing text in another paragraph:

  1. Add the {class: continued-para} attribute to the start of the next paragraph.

  2. Put a ^ (caret symbol) on a line alone above the next paragraph.

To read more about this Markua feature, see the specification at markua.com

Let's see both of these in action!

First, I'll start with a manuscript with a list surrounded by paragraphs, shown below:


Lorem ipsum dolor sit amet, consectetur adipiscing 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.

- Foo
- Bar
- Baz

Integer malesuada nunc vel risus. Posuere lorem ipsum dolor sit amet consectetur adipiscing. Et pharetra pharetra massa massa ultricies mi quis hendrerit. Nisl suscipit adipiscing bibendum est ultricies. Elementum nisi quis eleifend quam adipiscing. At ultrices mi tempus imperdiet. Dignissim enim sit amet venenatis urna cursus eget. Risus viverra adipiscing at in tellus integer feugiat scelerisque varius. Mi bibendum neque egestas congue quisque egestas diam. Scelerisque varius morbi enim nunc faucibus a pellentesque sit amet. Vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae elementum.

Next, I'll set my theme to use indentations at the start of paragraphs, to make this demo very clear. This is done by going to Theme > Custom Theme > Paragraph Style.

This is what that manuscript looks like when rendered as a PDF:

Next, we'll add the {class: continued-para} attribute list on the line above the following paragraph. This class signals to the Markua Processor that this paragraph is a continuation of the previous paragraph, and should be styled as such. This means that all paragraphs with the {class: continued-para} attribute will not have the regular paragraph spacing or paragraph indentation applied to it, as it is no longer treated like a separate paragraph.

The manuscript using this feature would look like this:


Lorem ipsum dolor sit amet, consectetur adipiscing 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.

- Foo
- Bar
- Baz

{class: continued-para}
Integer malesuada nunc vel risus. Posuere lorem ipsum dolor sit amet consectetur adipiscing. Et pharetra pharetra massa massa ultricies mi quis hendrerit. Nisl suscipit adipiscing bibendum est ultricies. Elementum nisi quis eleifend quam adipiscing. At ultrices mi tempus imperdiet. Dignissim enim sit amet venenatis urna cursus eget. Risus viverra adipiscing at in tellus integer feugiat scelerisque varius. Mi bibendum neque egestas congue quisque egestas diam. Scelerisque varius morbi enim nunc faucibus a pellentesque sit amet. Vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae elementum.

Generating a book with this manuscript yields the following:

Great! But we're not done yet! If you don't want to type out {class: continued-para} many times, there is an even shorter way to achieve the same thing: A Caret (^) symbol on a line by itself. This is syntactic sugar, and means exactly the same as {class: continued-para}. Let's see that one work.

Using a ^ symbol, our new manuscript would look like this:

Lorem ipsum dolor sit amet, consectetur adipiscing 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.

- Foo
- Bar
- Baz

^
Integer malesuada nunc vel risus. Posuere lorem ipsum dolor sit amet consectetur adipiscing. Et pharetra pharetra massa massa ultricies mi quis hendrerit. Nisl suscipit adipiscing bibendum est ultricies. Elementum nisi quis eleifend quam adipiscing. At ultrices mi tempus imperdiet. Dignissim enim sit amet venenatis urna cursus eget. Risus viverra adipiscing at in tellus integer feugiat scelerisque varius. Mi bibendum neque egestas congue quisque egestas diam. Scelerisque varius morbi enim nunc faucibus a pellentesque sit amet. Vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae elementum.

Finally, we compile our manuscript one last time, and voila!


If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!

If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!

Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book

Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!

To learn about amazing new books and authors, subscribe to our YouTube channel here: https://www.youtube.com/leanpub.

You can also follow Leanpub in lots of other places!

Did this answer your question?