mirror of https://github.com/zulip/zulip.git
markdown: Rename preprocessor_priorities module to priorities.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
e069330084
commit
7f0e11bd06
|
@ -8,7 +8,7 @@ from django.utils.html import escape as escape_html
|
|||
from markdown.extensions import Extension
|
||||
from markdown.preprocessors import Preprocessor
|
||||
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.openapi.openapi import (
|
||||
check_deprecated_consistency,
|
||||
get_openapi_parameters,
|
||||
|
|
|
@ -7,7 +7,7 @@ import markdown
|
|||
from markdown.extensions import Extension
|
||||
from markdown.preprocessors import Preprocessor
|
||||
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.openapi.openapi import check_deprecated_consistency, get_openapi_return_values
|
||||
|
||||
from .api_arguments_table_generator import generate_data_type
|
||||
|
|
|
@ -88,7 +88,7 @@ from pygments.lexers import find_lexer_class_by_name
|
|||
from pygments.util import ClassNotFound
|
||||
|
||||
from zerver.lib.exceptions import MarkdownRenderingException
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.tex import render_tex
|
||||
|
||||
# Global vars
|
||||
|
|
|
@ -6,7 +6,7 @@ from markdown.extensions import Extension
|
|||
from markdown.preprocessors import Preprocessor
|
||||
|
||||
from zerver.lib.emoji import EMOTICON_CONVERSIONS, name_to_codepoint
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
|
||||
REGEXP = re.compile(r"\{emoticon_translations\}")
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ from markdown import Markdown
|
|||
from markdown.extensions import Extension
|
||||
from markdown.preprocessors import Preprocessor
|
||||
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
|
||||
# There is a lot of duplicated code between this file and
|
||||
# help_settings_links.py. So if you're making a change here consider making
|
||||
|
|
|
@ -5,7 +5,7 @@ from markdown import Markdown
|
|||
from markdown.extensions import Extension
|
||||
from markdown.preprocessors import Preprocessor
|
||||
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
|
||||
# There is a lot of duplicated code between this file and
|
||||
# help_relative_links.py. So if you're making a change here consider making
|
||||
|
|
|
@ -6,7 +6,7 @@ import markdown
|
|||
from markdown_include.include import IncludePreprocessor, MarkdownInclude
|
||||
|
||||
from zerver.lib.exceptions import InvalidMarkdownIncludeStatement
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
|
||||
INC_SYNTAX = re.compile(r"\{!\s*(.+?)\s*!\}")
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import markdown
|
|||
from markdown.extensions import Extension
|
||||
|
||||
from zerver.lib.markdown import ResultWithFamily, walk_tree_with_family
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
|
||||
|
||||
class NestedCodeBlocksRenderer(Extension):
|
||||
|
|
|
@ -5,7 +5,7 @@ import markdown
|
|||
from markdown.extensions import Extension
|
||||
from markdown.preprocessors import Preprocessor
|
||||
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
|
||||
START_TABBED_SECTION_REGEX = re.compile(r"^\{start_tabs\}$")
|
||||
END_TABBED_SECTION_REGEX = re.compile(r"^\{end_tabs\}$")
|
||||
|
|
|
@ -18,7 +18,7 @@ from markdown.extensions import Extension
|
|||
from markdown.preprocessors import Preprocessor
|
||||
|
||||
import zerver.openapi.python_examples
|
||||
from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES
|
||||
from zerver.openapi.openapi import (
|
||||
check_additional_imports,
|
||||
check_requires_administrator,
|
||||
|
|
Loading…
Reference in New Issue