#6136 (Recognize and process links in comments)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Résumé
Concepts sous-jacents
Commentaires
- 1 année, 4 mois ago by Luc Saffre about #6136 (Recognize and process links in comments) : I wrote an admin command "removeurls" (in the memo plugin), which replaces [url] memo commands in existing data by <a href> tags.
- 1 année, 4 mois ago by Luc Saffre about #6136 (Recognize and process links in comments) (1 reply) : todo: my solution also replaces urls in the url memo command...
- 1 année, 4 mois ago by Luc Saffre about #6136 (Recognize and process links in comments) : I think that I fixed the bug. I also added more test cases. Your solution had a "design flaw": you were trying to call it after parsing it into a soup, but it's much easier to run re.sub() before giving the string to BeautifulSoup.
- 1 année, 4 mois ago by Sharif Mehedi about #6136 (Recognize and process links in comments) : This feature is still buggy on some edge cases and I am finding no other ways to optimize them. So, I publish them with bugs on edge cases. Added some test on book/docs/dev/bleach.rst.
- 1 année, 4 mois ago by Luc Saffre about #6136 (Recognize and process links in comments) : When I say e.g. documentation.ibanity.com/einvoicing/1/api/curl#create-zoomit-customer-search in a comment, Lino might make it clickable automatically: recognize the URL and turn it into a <a href>. This should be a configurable plugin option.
- 1 année, 4 mois ago by Luc Saffre about #6136 (Recognize and process links in comments) : Created new Ticket #6136 (Recognize and process links in comments).