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

V3 implementation #11

Closed
wants to merge 1 commit into from
Closed

Conversation

sander76
Copy link
Contributor

@sander76 sander76 commented Dec 15, 2018

First working version of V3.

Fix #10

Copy link
Owner

@MadLittleMods MadLittleMods left a 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
Copy link
Owner

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()])
Copy link
Owner

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:
```
```
Copy link
Owner

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
Copy link
Owner

@MadLittleMods MadLittleMods Dec 16, 2018

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?

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.

Markdown-icons is taken on pypi
2 participants