Files
zulip/zerver/migrations/0272_realm_default_code_block_language.py
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

19 lines
430 B
Python

# Generated by Django 2.2.10 on 2020-03-31 00:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0271_huddle_set_recipient_column_values'),
]
operations = [
migrations.AddField(
model_name='realm',
name='default_code_block_language',
field=models.TextField(default=None, null=True),
),
]