Overrides the default behavior to convert double underscore `__` inline blocks to underline `<u>` instead of `<strong>`.
Overrides the default behavior to convert for example double underscore `__` inline blocks to underline `<u>` instead of `<strong>`.
**Use with caution, as underlining makes text harder to read.**
**Use with caution, as underlining makes text harder to read.**
...
@@ -8,7 +8,7 @@ Overrides the default behavior to convert double underscore `__` inline blocks t
...
@@ -8,7 +8,7 @@ Overrides the default behavior to convert double underscore `__` inline blocks t
Anyways, it's just another tag for your CSS to tinker with, you don't have to underline.
Anyways, it's just another tag for your CSS to tinker with, you don't have to underline.
The **Markdown Underline** Plugin is for [Grav CMS](http://github.com/getgrav/grav). Use __double underscore__ create `<u>` tags.
The **Markdown Underline** Plugin is for [Grav CMS](http://github.com/getgrav/grav).
## Installation
## Installation
...
@@ -16,8 +16,6 @@ Installing the Markdown Underline plugin can be done in one of two ways. The GPM
...
@@ -16,8 +16,6 @@ Installing the Markdown Underline plugin can be done in one of two ways. The GPM
### GPM Installation (Preferred)
### GPM Installation (Preferred)
!! NOT SUBMITTED YET
The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's terminal (also called the command line). From the root of your Grav install type:
The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's terminal (also called the command line). From the root of your Grav install type:
bin/gpm install markdown-underline
bin/gpm install markdown-underline
...
@@ -46,18 +44,27 @@ Here is the default configuration and an explanation of available options:
...
@@ -46,18 +44,27 @@ Here is the default configuration and an explanation of available options:
```yaml
```yaml
enabled:true
enabled:true
'*':em
'**':strong
'_':em
'__':u
```
```
Note that if you use the admin plugin, a file with your configuration, and named markdown-underline.yaml will be saved in the `user/config/plugins/` folder once the configuration is saved in the admin.
Note that if you use the admin plugin, a file with your configuration, and named `markdown-underline.yaml` will be saved in the `user/config/plugins/` directory once the configuration is saved in the admin.
## Usage
## Usage
With the default configuration, when you write
This will be __underlined text__.
This will be __underlined text__.
yields
it will yield
This will be <u>underlined text</u>.
This will be <u>underlined text</u>.
## Future
You can also override the configuration in a page's frontmatter like so:
- Perhaps evolve into a plugin that allows individual overriding of `*`, `**`, `_`, `__` etc.