zulip/zerver/lib/bugdown
Rohitt Vashishtha f9caf522f0 markdown: Allow setting a default language for code blocks.
This adds a new realm setting: default_code_block_language.

This PR also adds a new widget to specify a language, which
behaves somewhat differently from other widgets of the same
kind; instead of exposing methods to the whole module, we
just create a single IIFE that handles all the interactions
with the DOM for the widget.

We also move the code for remapping languages to format_code
function since we want to preserve the original language to
decide if we override it using default_code_clock_language.

Fixes #14404.
2020-04-09 16:02:02 -07:00
..
__init__.py CVE-2020-10935: Fix XSS vulnerability in local link rewriting. 2020-04-01 14:01:45 -07:00
api_arguments_table_generator.py api docs: Redesign visuals for documenting arguments. 2020-03-27 00:03:36 -07:00
api_code_examples.py api_docs: Migrate POST /zulip-outgoing-webhook. 2020-04-02 14:55:32 -07:00
fenced_code.py markdown: Allow setting a default language for code blocks. 2020-04-09 16:02:02 -07:00
help_emoticon_translations_table.py templates: Fix more low-hanging HTML validation problems. 2019-04-23 13:00:59 -07:00
help_relative_links.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
help_settings_links.py exports: Update wording on settings page, /help and /features. 2019-08-22 13:17:03 -07:00
include.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
nested_code_blocks.py bugdown: Remove unused imports. 2019-02-02 17:25:22 -08:00
tabbed_sections.py help: Make minor updates to import-from-mattermost. 2019-04-16 17:49:42 -07:00
testing_mocks.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
tlds-alpha-by-domain.txt