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

[WIP] Trying to fix the plugin #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ __pycache__/
.Python
env/
venv/
.venv/
venv2/
venv3/
build/
Expand All @@ -24,6 +25,7 @@ var/
*.egg-info/
.installed.cfg
*.egg
.eggs/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
4 changes: 2 additions & 2 deletions markdown_blockdiag/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def __init__(self, **kwargs):
}
super(BlockdiagExtension, self).__init__(**kwargs)

def extendMarkdown(self, md, md_globals):
md.parser.blockprocessors.add(
def extendMarkdown(self, md):
md.parser.blockprocessors.register(
'blockdiag', BlockdiagProcessor(md.parser, self), '>indent'
)
md.registerExtension(self)
2 changes: 1 addition & 1 deletion markdown_blockdiag/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import base64

from markdown.blockprocessors import BlockProcessor
from markdown.util import etree
import xml.etree.ElementTree as etree
from markdown_blockdiag.utils import draw_blockdiag, DIAG_MODULES

# Python 3 version
Expand Down