Bold, Italic, Strikethrough, Code

Inline text can be styled to put emphasis or formatting on certain phrases. Markdown offers wrappers for Bold, Italic, Strikethrough, and Code.

Syntax

Bold text is created by wrapping a set of text with a pair of either ** or __ characters.

Italic text is created by wrapping text with a pair of either * or _.

Strikethrough text is created by wrapping text between a pair of ~~ characters.

Code spans are created by wrapping text between a pair of ` characters.

Basics

Two simple examples for Bold text. Notice either * or _ can be used, but there must be two on each side of the wrap. The start and end characters must also match.

Here's **bold** and here's also __bold__.

Italic text is written similarly, using one * or _ instead of two.

Here's *italic* and here's also _italic_.

Same rules apply to Strikethrough text, using ~~.

Using ~~strikethrough~~ text.

Code spans follow the same rules, too.

Defining a `technical term`.
Mixing Styles of Text

Combinations of these can be used together. Make sure the innermost pair of tags is closed before closing an outer pair. Using unlike characters for different pairs helps with readability. (Using * for bold, _ for italic, etc.)

We can write **bold and _italic_**.
Spanning Multiple Lines

Inline text decorators can span multiple lines, as long as there are no empty lines between the start and end tags.

Writing a sentence that **has
bold text** across lines.

Markdown++

A custom Character Style can be given to Inline Text using a Markdown++ style: command directly before the starting syntax of the Inline Text.

Styling <!--style:CustomBold-->**inline text. Style name "CustomBold"**.

To learn more about Markdown++ tagging, see Learning Markdown++.

ePublisher Style Information

Default Style Properties

Style Type: Character
Style Name: Bold, Italic, Strikethrough, Code

Bold

Property

Value

font weight

bold

Italic

Property

Value

font style

italic

Strikethrough

Property

Value

text decoration

line-through

Code

Property

Value

background color

#efefef

font family

Consolas

white space

pre

If a custom style name is assigned to Inline HTML, that style name will still inherit all of the listed default style information.

Last modified date: 2025-11-07