zulip/zerver/lib/markdown
akshatdalton 9c6d8d9d81 markdown: Add support to shorten GitHub links.
We add support to shorten links and test their shortening in
well-organized, clean manner that makes it trivial to extend the
GitHub approach for GitLab and perhaps other services.

We only shorten basic types of GitHub links (issue, PR, commit) that
fit a set of simple common patterns; the default behaviour of Autolink
is kept for everything else.

Logic added in frontend and backend Markdown Processor is identical.
This makes easy to extend the logic for other services like GitLab.

Fixes #11895.
2021-03-25 00:39:44 -07:00
..
__init__.py markdown: Add support to shorten GitHub links. 2021-03-25 00:39:44 -07:00
api_arguments_table_generator.py api docs: Expand checking for deprecated fields. 2021-02-16 15:34:52 -08:00
api_return_values_table_generator.py api docs: Sort response keys in /get-events. 2021-02-26 15:01:37 -08:00
fenced_code.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
help_emoticon_translations_table.py mypy: Correct typing.re imports to typing. 2021-03-17 18:41:46 -07:00
help_relative_links.py mypy: Correct typing.re imports to typing. 2021-03-17 18:41:46 -07:00
help_settings_links.py mypy: Correct typing.re imports to typing. 2021-03-17 18:41:46 -07:00
include.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
nested_code_blocks.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
tabbed_sections.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
testing_mocks.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00