code: def hard_wrap(self):
          
          self.linebreak = re.compile(r'^ *\n(?!\s*$)')
          self.text = re.compile(
              r'^[\s\S]+?(?=[\\<!\[_*`~]|https?://| *\n|$)'
          )
docs: Grammar for hard wrap linebreak. You don't need to add two
          spaces at the end of a line.