Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Markdown compat#3604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
mjschultz wants to merge5 commits intoencode:masterfrommjschultz:markdown-compat
Closed

Conversation

@mjschultz
Copy link
Contributor

The currentapply_markdown generates the followingDeprecationWarnings:

markdown/__init__.py:143: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach http://bleach.readthedocs.org/) if you are parsing untrusted markdown text. See the 2.6 release notes for more infomarkdown/__init__.py:222: DeprecationWarning: Setting configs in the Named Extension string is deprecated. It is recommended that you pass an instance of the extension class to Markdown or use the "extension_configs" keyword. The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.headerid" instead of "headerid"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.

These three commits correct them per thePython-Markdown 2.6 release notes.

@jpadilla
Copy link
Contributor

@mjschultz looks good to me, thanks!

@lovelydinosaur
Copy link
Contributor

Great. Which versions does this now work against? Do we need to double check that against what we current list as supported?

@mjschultz
Copy link
ContributorAuthor

It looks likeextension_configs was introduced inpython-markdown 2.5 which has been out for a year. I'm not sure what version(s) of markdown you'd like to support down to though?

Is there a way to automate this or should I manually verify markdown versions from current down to something?

@mjschultz
Copy link
ContributorAuthor

Here is what I have right now running./runtests.py --fast:

envpy2.7py3.4
markdown==2.6.4xx
markdown==2.5.2xx
markdown==2.4.1xx
markdown==2.3.1xx
markdown==2.2.1xx
markdown==2.1.1xx
markdown==2.0.3

@lovelydinosaur
Copy link
Contributor

Okay. Currently the homepage lists 2.1.0+ as our requirement.
We could either:

  • Bump to 2.2 (Not ideal since it'd be in a minor release)
  • Ensure that the compat handles both styles dep on what's available.
  • Something else?

@mjschultz
Copy link
ContributorAuthor

Okay, it turns out in markdown 2.2 they changed the extensions framework a bit to permit external modules with more ease. This means that 2.1 would force amarkdown.extensions in front of theheaderid causing the errors.

I added some changes that checkmarkdown.version and set the headerid extension path based on that. I updated the checklist above.

I also bumped the markdown version inrequirements-optionals.txt.

@xordoquy
Copy link
Contributor

Closed in favor of#3842.
Thanks@mjschultz and sorry this didn't got merged faster.

@mjschultzmjschultz deleted the markdown-compat branchJanuary 19, 2016 15:02
xordoquy added a commit that referenced this pull requestJan 19, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@mjschultz@jpadilla@lovelydinosaur@xordoquy

[8]ページ先頭

©2009-2025 Movatter.jp