From the Streamfield panel in the admin interface, 'markdown' can be selected and the MDE will start, attempting to save invokes the error.
Wagtailcodeblock is working flawlessly. Perhaps I've missed something obvious?
beautifulsoup4==4.6.0
bleach==2.1.2
certifi==2018.1.18
chardet==3.0.4
Django==1.11.9
django-el-pagination==3.2.3
django-modelcluster==3.1
django-taggit==0.22.2
django-treebeard==4.2.0
djangorestframework==3.6.4
html5lib==0.999999999
idna==2.6
Markdown==2.6.11
Pillow==5.0.0
pkg-resources==0.0.0
pytz==2017.3
requests==2.18.4
six==1.11.0
Unidecode==1.0.22
urllib3==1.22
wagtail==1.13.1
wagtail-markdown==0.5a1
wagtailcodeblock==0.4.2
wagtailmarkdownblock==0.3.1
webencodings==0.5.1
Willow==1.0
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py", line 43, in _cache_controlled
response = viewfunc(request, *args, **kw)
File "/usr/local/lib/python3.6/site-packages/wagtail/wagtailadmin/urls/__init__.py", line 96, in wrapper
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/wagtail/wagtailadmin/decorators.py", line 31, in decorated_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/wagtail/wagtailadmin/views/pages.py", line 321, in edit
if form.is_valid() and not page.locked:
File "/usr/local/lib/python3.6/site-packages/modelcluster/forms.py", line 259, in is_valid
form_is_valid = super(ClusterForm, self).is_valid()
File "/usr/local/lib/python3.6/site-packages/django/forms/forms.py", line 183, in is_valid
return self.is_bound and not self.errors
File "/usr/local/lib/python3.6/site-packages/django/forms/forms.py", line 175, in errors
self.full_clean()
File "/usr/local/lib/python3.6/site-packages/django/forms/forms.py", line 384, in full_clean
self._clean_fields()
File "/usr/local/lib/python3.6/site-packages/django/forms/forms.py", line 396, in _clean_fields
value = field.widget.value_from_datadict(self.data, self.files, self.add_prefix(name))
File "/usr/local/lib/python3.6/site-packages/wagtail/wagtailcore/blocks/base.py", line 523, in value_from_datadict
return self.block_def.value_from_datadict(data, files, name)
File "/usr/local/lib/python3.6/site-packages/wagtail/wagtailcore/blocks/stream_block.py", line 165, in value_from_datadict
int(data['%s-%d-order' % (prefix, i)]),
ValueError: invalid literal for int() with base 10:
33 body = StreamField([
34 ('heading', blocks.CharBlock(classname="full title")),
35 ('paragraph', blocks.RichTextBlock()),
36 ('image', ImageChooserBlock()),
37 ('code', CodeBlock(label='Code')),
38 ('markdown', MarkdownBlock()),
39 ])