Commit 368675c2 authored by Guillaume Binet's avatar Guillaume Binet

use colour instead of color which aliases to colour

parent e0f93c7e
...@@ -10,7 +10,7 @@ from markdown.postprocessors import Postprocessor ...@@ -10,7 +10,7 @@ from markdown.postprocessors import Postprocessor
from markdown.inlinepatterns import SubstituteTagPattern from markdown.inlinepatterns import SubstituteTagPattern
from markdown.extensions.fenced_code import FencedBlockPreprocessor from markdown.extensions.fenced_code import FencedBlockPreprocessor
from ansi.color import fg, bg, fx from ansi.colour import fg, bg, fx
from html import unescape from html import unescape
...@@ -498,7 +498,7 @@ class AnsiPreprocessor(FencedBlockPreprocessor): ...@@ -498,7 +498,7 @@ class AnsiPreprocessor(FencedBlockPreprocessor):
if m: if m:
code = self._escape(m.group('code')) code = self._escape(m.group('code'))
placeholder = self.markdown.htmlStash.store(code, safe=False) placeholder = self.markdown.htmlStash.store(code)
text = f'{text[:m.start()]}\n{placeholder}\n{text[m.end():]}' text = f'{text[:m.start()]}\n{placeholder}\n{text[m.end():]}'
else: else:
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment