-
Notifications
You must be signed in to change notification settings - Fork 12
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
V3 implementation #11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a CHANGELOG.md
# 3.0.0 - *upcoming*
- Now compatible with `markdown@todo` and Python 3
- TODO: What was removed, etc
# 2.x
https://github.com/MadLittleMods/markdown-icons/tree/v2
- Legacy version for `markdown@todo` and Python 2.7x
Let's also add a .gitlab-ci.yml
for CI testing and deployment to PyPI. CI/CD-only project setup on GitLab, https://gitlab.com/MadLittleMods/markdown-icons
|
||
#### No prefix (just in case you couldn't figure it out :P): | ||
This isn't suggested, as it will take over the already built in HTML Entities | ||
```Python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lowercase
```python
``` | ||
md = markdown.Markdown(extensions=['iconfonts(prefix=)']) | ||
converted_text = md.convert(text) | ||
md = markdown.Markdown(extensions=[IconFontsExtension()]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we could keep converted_text = md.convert(text)
here
#### `prefix_base_pairs` option | ||
|
||
The `prefix_base_pairs` option allows for multiple prefix-base pairs to be specified, to allow you to support both Bootstrap 3/Glyphicon and FontAwesome icons | ||
|
||
##### In Python: | ||
``` | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```python
|
||
# Register the global one | ||
self.add_inline(md, 'iconfonts', IconFontsPattern, icon_regex, config) | ||
current_prio = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a comment here to explain what this does.
Is this a standard pattern for other extensions?
First working version of V3.
Fix #10