mmark-ext-0.2.1.1: Commonly useful extensions for the MMark markdown processor

Copyright© 2018 Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.MMark.Extension.LinkTarget

Description

Specify the target attribute of links in link titles. This allows, e.g. make a link open in 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.