You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There does not appear to be any way to turn (this is not actual working syntax): words (title)[link]{rel=external} more words
into: words <a rel="external" href="link">title</a> more words
Specifying the href by hand works, if I do: words <a rel="external" href="link>title</a> more words
that generates, er... words <a rel="external" href="link>title</a> more words
in the HTML, but that seems to go against the spirit of why lowdown exists (agnostic input, multi-format output).
In this case, our CSS uses the rel=external attribute to automatically place an "external link" arrow in the title, which we find valuable.
Any suggestions? Best I've come up with is to do [title🔗] which works but is a PITA for many reasons including semantic dilution.
The text was updated successfully, but these errors were encountered:
parse_ext_attrs is the place one would look at to add this. If you'd like to take a stab at this, I'd refactor any key=value pair as being added to a list in rndr_image, rndr_link, and other attribute consumers. Right now, the recognised ones (width and height) are hard-coded into the header file. This way, the front-ends (e.g., HTML) can handle arbitrary attributes as they see fit. For example, width for images and rel for links. With any remaining ones, pandoc renders them as data-xxx, which looks correct to me.
There does not appear to be any way to turn (this is not actual working syntax):
words (title)[link]{rel=external} more words
into:
words <a rel="external" href="link">title</a> more words
Specifying the href by hand works, if I do:
words <a rel="external" href="link>title</a> more words
that generates, er...
words <a rel="external" href="link>title</a> more words
in the HTML, but that seems to go against the spirit of why lowdown exists (agnostic input, multi-format output).
In this case, our CSS uses the rel=external attribute to automatically place an "external link" arrow in the title, which we find valuable.
Any suggestions? Best I've come up with is to do [title🔗] which works but is a PITA for many reasons including semantic dilution.
The text was updated successfully, but these errors were encountered: