Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable short name via entrypoint #45

Merged
merged 3 commits into from
Oct 9, 2018

Conversation

jambonrose
Copy link
Owner

Markdown's behavior pre-v3 was to automatically append mdx_ to strings that acted as references to third-party extensions. Starting in Markdown v3, this behavior has been removed. In v2.1.0 of this package, we therefore lost the ability to refer to superscript (forcing developers to switch to mdx_superscript) if referring to the extension by string.

As it turns out, we can re-enable the old behavior by using an entrypoint in setup.py. This PR therefore re-enables previous behavior.

Setup.py now:

1. defines a Markdown entrypoint, allowing for string reference by short
   module (see docs)
2. adds extra links for use on PyPI
3. displays only relevant section of ReadMe on PyPI
4. cleans up code (constants are upper-cased, duplicate code refactored)
@codecov
Copy link

codecov bot commented Oct 9, 2018

Codecov Report

Merging #45 into development will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           development    #45   +/-   ##
==========================================
  Coverage          100%   100%           
==========================================
  Files                1      1           
  Lines               10     10           
==========================================
  Hits                10     10

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a1c275...9032add. Read the comment docs.

@jambonrose jambonrose merged commit 071bac0 into development Oct 9, 2018
@jambonrose jambonrose deleted the enable_short_name_via_entrypoint branch October 9, 2018 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant