Skip to content

Commit

Permalink
Relax regex, fix description
Browse files Browse the repository at this point in the history
  • Loading branch information
JT committed Nov 5, 2018
1 parent bd0017d commit 05f2636
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pymdsm/pymdsm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from markdown.extensions import Extension
from markdown.inlinepatterns import SimpleTagPattern

SMALL_TEXT_REGEX = r'(?<!\.)(\.{2})([^\.]*?)(\.{2})(?!\.)'
SMALL_TEXT_REGEX = r'(\.{2})(.*?)(\.{2})'

class PymdsmExtension(Extension):
"""Adds Small extension to Markdown class."""
Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
from setuptools import setup
from os import path

this_directory = path.abspath(path.dirname(__file__))

with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(
name='pymdsm',
decsription='A python markdown extension that converts ..content.. to <small>content</small>',
version='0.0.2',
description='A python markdown extension that converts ..content.. to <small>content</small>',
long_description=long_description,
long_description_content_type='text/markdown',
version='0.0.3',
url='https://github.com/jamesthomasonjr/pymdsm',
author='James Thomason, Jr',
author_email='james@jamesthomasonjr.com',
Expand Down

0 comments on commit 05f2636

Please sign in to comment.