Underline a heading, e.g. for reStructuredText or Markdown -- quick & easy.
Invoke the "underline" command to underline a line of text with the character typed last below that line.
A headline you typed -
If you invoke at this state the command (i.e. after typing "-" and the cursor is next to "-"), it will result in underlining the heading text with "-"
A headline you typed --------------------
Similarly, you can use any other character to underline, e.g.:
A headline you typed ~
and invoking the command will result in:
A headline you typed ~~~~~~~~~~~~~~~~~~~~
This is useful for reStructuredText or Markdown flavours, in case you use this kind of heading style.
You can invoke the command using one of the following methods:
I want to underline with a "~" (or "´", "`"), but why do I get a strange character ("ª") when I try to run the underline command?
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.