Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions readme_renderer/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@
warnings.warn(_EXTRA_WARNING)
variants = {}

# Make code fences with `python` as the language default to highlighting as
# Python 3.
_LANG_ALIASES = {
'python': 'python3',
}


def render(
raw: str,
Expand Down Expand Up @@ -101,7 +95,6 @@ def _highlight(html: str) -> str:
def replacer(match: Match[Any]) -> str:
try:
lang = match.group('lang')
lang = _LANG_ALIASES.get(lang, lang)
lexer = pygments.lexers.get_lexer_by_name(lang)
except ValueError:
lexer = pygments.lexers.TextLexer()
Expand Down