question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`recommonmark` is deprecated

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cruisencommented, Feb 11, 2022

@sobolevn please comment.

Here are some comments and a little feasibility study:

wemake-python-styleguide:

  • dependencies: If the motivation is only to reduce the amount of external dependencies, which is a very good reason to begin with, then this PR is not worth the effort. - It basically adds four new ones.

    poetry add -D myst-parser • Installing mdurl (0.1.0) • Installing markdown-it-py (2.0.1) • Installing mdit-py-plugins (0.3.0) • Installing myst-parser (0.16.1)

  • make html does not fail anymore: Please note, a PR already was tried and rejected due to doc building problems. As described in here, apparently you had problems to rebuild your doctree.

    So I cloned gh repo clone wemake-services/wemake-python-package. Installed sphinx and myst-parser and configured conf.py and index.rstfollowing the myst instructions and included the README.md and CONTRIBUTING.md to the doctree and it worked for me, no errors 🙂.

    make html Running Sphinx v4.4.0 loading pickled environment… done myst v0.16.1: MdParserConfig(renderer=‘sphinx’, commonmark_only=False, enable_extensions=[‘dollarmath’], […] build succeeded. The HTML pages are in build/html.

wemake-python-styleguide

  • dependencies: Here we remove two but add four.

    poetry remove -D m2r2 • Removing m2r2 (0.3.2) • Removing mistune (0.8.4)

    poetry add -D myst-parser • Installing mdurl (0.1.0) • Installing markdown-it-py (2.0.1) • Installing mdit-py-plugins (0.3.0) • Installing myst-parser (0.16.1)

  • make html: with minimal md to myst adaption like mdincude -> include …:

    Running Sphinx v4.3.2 […] build succeeded, 28 warnings. The HTML pages are in _build/html.

    See attached warnings.txt.

Conclusion

  • myst-parser: So if the motivation is to replace the m2r2 translation layer with, and/or adapt to what I call sphinx best practice myst-parser, then, based on the mentioned PR, I will happily have a look to estimate the amount of work needed, and then discuss and decide on two new PR’s, most probable one each on both repositories?

Please comment.

1reaction
cruisencommented, Feb 10, 2022

@cruisen I would love to get rid of any extra dependencies. If you have the time to work on this, I will accept this PR 🙂

@sobolevn Thank you 🙂.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recommonmark - A markdown parser for docutils - GitHub
Warning: recommonmark is now deprecated. We recommend using MyST for a docutils bridge going forward. See this issue for background and discussion.
Read more >
AutoStructify Component - recommonmark - Read the Docs
AutoStructify is a component in recommonmark that takes a parsed docutil AST by CommonMarkParser ... Deprecated; enable_math: whether enable Math Formula ...
Read more >
Docs: recommonmark deprecated, move to MyST (#1331) · Issues ...
Ran into an issue on V3 branch with newer sphinx & themes etc. Docutils 0.17 dislikes the tab_width settting, set in recommonmark.
Read more >
Sphinx and Markdown around the world in 2021
Writing Markdown in Sphinx¶. To that end, we recognized the potential of MyST as a successor of recommonmark, and deprecated the latter in...
Read more >
It is possible to have sphinx MyST rendering mermaid
Note: recommonmark does not render correctly tables that's why I try to ... Notice that recommonmark is deprecated in favor of myst-parser ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found