mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Style user and group links in text differently
Style user and group links in text differently
Now that all links in text have underlines by default, I think this looks pretty strange for ~group and @user links, which are quite common and unnecessary to have underlined all the time. This modifies the markdown parser to add link-user and link-group classes to these links, which allows them to be styled differently. In addition, some of the markdown tests needed to be changed to use BeautifulSoup instead of simple string-matching, since it's not as simple to recognize links any more (and the order of attrs might change).merge-requests/55/head
Deimos
6 years ago
3 changed files with 32 additions and 11 deletions
Write
Preview
Loading…
Cancel
Save
Reference in new issue