A typographical logo of Contenido.

Overline

The overline will add a line above the text. This can be useful for emphasizing or highlighting headings or the other pieces of text.

toggleOverline #

To make the selection of your content overlined you can use toggleOverline function. It'll toggle between overlined and not overlined automatically.

isOverline #

This function help you to find out if the current character is overlined or not. The returend boolean will update on cursor moves.

Example #

An example of toggleOverline and isOverline usage:

Customization #

By default, the OVERLINE key represent the overlined inline style. For any reason if you need to change this key to something else, you can pass your custom key to the previous functions as the third parameter.

Also if you changed the default key for the overline inline style, you have to pass the updated version of style map to the editor. Here is an example:



Made with ❤ for a better experience

MIT © 2023 - This site does not track you.