| Copyright | © 2018–present Mark Karpov |
|---|---|
| License | BSD 3 clause |
| Maintainer | Mark Karpov <markkarpov92@gmail.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Text.MMark.Extension.LinkTarget
Description
Specify the target attribute of links in link titles. This allows us
to, e.g. make a link open in a new tab.
Synopsis
Documentation
linkTarget :: Extension Source #
When title of a link starts with the word "_blank", "_self",
"_parent", or "_top", it's stripped from title (as well as all
whitespace after it) and added as the value of target attribute of the
resulting link.
For example:
This [link](/url '_blank My title') opens in new tab.