HomePhabricator

Abbreviate label of links when formatting
a4273aac794fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Abbreviate label of links when formatting

Shows a user friendly link text instead of <URL>.
Also shortens URL labels so layout will not break so easily.

Remove '<' and '>' from links label.
Use text after / as label.
DecodeURI for label.
Label before, label after

https://ur.wikipedia.org/wiki/%D9%88%DB%8C%DA%A9%DB%8C%D9%BE%DB%8C%DA%88%DB%8C%D8%A7,
ویکیپیڈیا

<https://example.com/George Washington>, George Washington

http://numerique.bibliotheque.toulouse.fr/ark:/74899/B315556101_BD_000005,
B315556101_BD_000005

wd:Q23, wd:Q23 (stays the same)

Bug: T150937
Change-Id: I2e0f819fbb734b786f0b67cffabfca4cd56cda9d

Details

Provenance
JonasAuthored on Jun 21 2017, 10:55 AM
Parents
rWDQG67d6e5d24b8a: Run auto install and test for grunt build and grunt deploy
Branches
Unknown
Tags
Unknown
ChangeId
I2e0f819fbb734b786f0b67cffabfca4cd56cda9d