old_contents: from rinoh.paper import A4
  from rinoh.backend import pdf
  from rinoh.frontend.commonmark import CommonMarkReader
  
  from rinohlib.templates.article import Article, ArticleOptions
  
  if __name__ == '__main__':
      reader = CommonMarkReader()
      for name in ('README', ):
          with open(name + '.md', 'rb') as file:
              flowables = reader.parse(file)
          article_options = ArticleOptions(page_size=A4, table_of_contents=True)
          document = Article(flowables, options=article_options, backend=pdf)
          document.render(name)
  
new_contents: from rinoh.backend import pdf
  from rinoh.frontend.commonmark import CommonMarkReader
  from rinoh.templates import Article
  
  
  if __name__ == '__main__':
      reader = CommonMarkReader()
      for name in ('README', ):
          with open(name + '.md', 'rb') as file:
              document_tree = reader.parse(file)
          document = Article(document_tree, backend=pdf)
          document.render(name)
  
subject: Fix the CommonMark example