diff --git a/mistletoe/block_token.py b/mistletoe/block_token.py index 9a2f85e..3133d47 100644 --- a/mistletoe/block_token.py +++ b/mistletoe/block_token.py @@ -366,6 +366,11 @@ def content(self): """Returns the code block content.""" return self.children[0].content + @content.setter + def content(self, value): + """Sets the code block content.""" + self.children[0].content = value + @staticmethod def start(line): return line.replace('\t', ' ', 1).startswith(' ') @@ -429,6 +434,11 @@ def content(self): """Returns the code block content.""" return self.children[0].content + @content.setter + def content(self, value): + """Sets the code block content.""" + self.children[0].content = value + @classmethod def start(cls, line): match_obj = cls.pattern.match(line) @@ -1040,6 +1050,11 @@ def content(self): """Returns the raw HTML content.""" return self.children[0].content + @content.setter + def content(self, value): + """Sets the code block content.""" + self.children[0].content = value + @classmethod def start(cls, line): stripped = line.lstrip()