Skip to content

BetterEm

Usage

Note

For all examples on this page, underscores are smart and asterisks are not.

BetterEm requires that non-whitespace characters follow the opening token(s) and precede the closing token(s).

Whitespace Example

This * won't emphasize *

This will emphasize

* Won't highlight *

*Will highlight*

BetterEm allows for a more natural nested token feel.

Nested Token Example

I'm italic and bold I am just bold.

I'm bold and italic! I am just italic.

***I'm italic and bold* I am just bold.**

***I'm bold and italic!** I am just italic.*

BetterEm will ensure smart mode doesn't terminate in scenarios where there are a large amount of consecutive tokens inside.

Consecutive Token Example

A lot of underscores____________is okay

A lot of underscores____________is okay

___A lot of underscores____________is okay___

___A lot of underscores____________is okay___

BetterEm will also ensure that smart mode breaks proper when an inner like token signifies an end.

Smart Break Example

This will all be bold __because of the placement of the center underscores.

This will all be bold __ because of the placement of the center asterisks.

This will NOT all be bold because of the placement of the center underscores.__

This will all be bold_ because the token count is less than that of the surrounding.

__This will all be bold __because of the placement of the center underscores.__

__This will all be bold __ because of the placement of the center underscores.__

__This will NOT all be bold__ because of the placement of the center underscores.__

__This will all be bold_ because of the token is less than that of the surrounding.__

BetterEm will allow non-smart emphasis to contain "floating" like tokens.

Floating Token Example

All will * be italic

All will *be italic

All will not be italic*

All will not ** be italic

All will * be bold

All will *be bold

All will not* be bold**

All will not *be bold**

*All will * be italic*

*All will *be italic*

*All will not* be italic*

*All will not ** be italic*

**All will * be bold**

**All will *be bold**

**All will not*** be bold**

**All will not *** be bold**

Last update: February 27, 2022
Created: September 11, 2021
Back to top