Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

refactor: Rename bugdown to markdown in misc. files.

Mohit Guptac16c7130608f
diff --git a/docs/testing/mypy.md b/docs/testing/mypy.md
index 583661861c8..b3b2acd6eb0 100644
--- a/docs/testing/mypy.md
+++ b/docs/testing/mypy.md
@@ -193,7 +193,7 @@ have untracked files in your Zulip checkout safely). So if you get a
the existing codebase:
```
-mypy | zerver/models.py:1234: note: Import of 'zerver.lib.bugdown_wrappers' ignored
+mypy | zerver/models.py:1234: note: Import of 'zerver.lib.markdown_wrappers' ignored
mypy | zerver/models.py:1234: note: (Using --follow-imports=error, module not passed on command line)
```
diff --git a/static/js/rendered_markdown.js b/static/js/rendered_markdown.js
index 543e43fcab8..e04a2ececdf 100644
--- a/static/js/rendered_markdown.js
+++ b/static/js/rendered_markdown.js
@@ -145,9 +145,10 @@ exports.update_elements = (content) => {
return;
}
- // Moment throws a large deprecation warning when it has to fallback
- // to the Date() constructor. We needn't worry here and can let bugdown
- // handle any dates that moment misses.
+ // Moment throws a large deprecation warning when it has to
+ // fallback to the Date() constructor. This isn't really a
+ // problem for us except in local echo, as the backend always
+ // uses a format that ensures that is unnecessary.
moment.suppressDeprecationWarnings = true;
const timestamp = moment(time_str);
if (timestamp.isValid()) {
diff --git a/tools/build-release-tarball b/tools/build-release-tarball
index a6c1095979d..c2a88ae49ff 100755
--- a/tools/build-release-tarball
+++ b/tools/build-release-tarball
@@ -93,7 +93,7 @@ EOF
./tools/update-prod-static
-# We don't need duplicate copies of emoji with hashed paths, and they would break bugdown
+# We don't need duplicate copies of emoji with hashed paths, and they would break markdown
find prod-static/serve/generated/emoji/images/emoji/ -regex '.*\.[0-9a-f]+\.png' -delete
echo "$GITID" > build_id
diff --git a/tools/setup/emoji/build_emoji b/tools/setup/emoji/build_emoji
index 1ff34775df7..c7dbd693c2f 100755
--- a/tools/setup/emoji/build_emoji
+++ b/tools/setup/emoji/build_emoji
@@ -318,7 +318,8 @@ def setup_old_emoji_farm(cache_path: str,
pass
def generate_map_files(cache_path: str, emoji_catalog: Dict[str, List[str]]) -> None:
- # This function generates the data file consumed by webapp, mobile apps, bugdown etc.
+ # This function generates the main data file about emoji that are
+ # consumed by the webapp, mobile apps, markdown processor, etc.
names = emoji_names_for_picker(EMOJI_NAME_MAPS)
codepoint_to_name = generate_codepoint_to_name_map(EMOJI_NAME_MAPS)
name_to_codepoint = generate_name_to_codepoint_map(EMOJI_NAME_MAPS)