File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""This module generates and formats instructional messages about fixing Markdown code blocks."""
22
3-
43from bot .exts .info .codeblock import _parsing
54from bot .log import get_logger
65
98# Make sure to escape any Markdown symbols here.
109_EXAMPLE_PY = "{lang}\n print('Hello, world!')"
1110_EXAMPLE_CODE_BLOCKS = (
12- "\\ `\\ `\\ `{content}\n \\ `\\ `\\ `\n \n
13- **This will result in the following:**\n
14- ```{content}```"
11+ "\\ `\\ `\\ `{content}\n \\ `\\ `\\ `\n \n "
12+ " **This will result in the following:**\n "
13+ " ```{content}```"
1514)
1615
1716
@@ -38,7 +37,7 @@ def _get_bad_ticks_message(code_block: _parsing.CodeBlock) -> str | None:
3837
3938 valid_ticks = f"\\ { _parsing .BACKTICK } " * 3
4039 instructions = (
41- f "You are using the wrong character instead of backticks. "
40+ "You are using the wrong character instead of backticks."
4241 f"Use { valid_ticks } , not `{ code_block .ticks } `."
4342 )
4443
You can’t perform that action at this time.
0 commit comments