math-editor | equation editor | Math library
kandi X-RAY | math-editor Summary
kandi X-RAY | math-editor Summary
An equation editor for creating mathematical and scientific documents. Math Editor is a free alternative to expensive commercial products like MathType. It allows you to typeset almost all kinds of equations. The architecture of Math Editor has been explained in this article on The Code Project:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of math-editor
math-editor Key Features
math-editor Examples and Code Snippets
Community Discussions
Trending Discussions on math-editor
QUESTION
I'm following this tutorial to add LaTeX support to markdown, and I get this error:
Environment:
Request Method: GET Request URL: http://localhost/posts/ttttt/
Django Version: 2.2.10 Python Version: 3.7.3 Installed Applications: ['home', 'search', 'info', 'list', 'streams', 'post', 'faq', 'registration', 'snippet', 'wagtailmd', 'wagtailcodeblock', 'wagtail.contrib.forms', 'wagtail.contrib.redirects', 'wagtail.embeds', 'wagtail.sites', 'wagtail.users', 'wagtail.snippets', 'wagtail.documents', 'wagtail.images', 'wagtail.search', 'wagtail.admin', 'wagtail.core', 'wagtail.contrib.modeladmin', 'wagtail.contrib.styleguide', 'modelcluster', 'taggit', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.humanize', 'allauth', 'allauth.account', 'allauth.socialaccount', 'crispy_forms', 'wagtailmenus', 'captcha', 'wagtailcaptcha'] Installed Middleware: ['django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'wagtail.core.middleware.SiteMiddleware', 'wagtail.contrib.redirects.middleware.RedirectMiddleware']
Template error: In template C:\Users\abdom\OneDrive\Desktop\project\website\templates\base.html, error at line 0 init() takes 1 positional argument but 2 were given 1 : {% load static wagtailuserbar %} 2 : {% load menu_tags %} 3 : 4 : 5 : 6 :
7 : 8 : 9 : {% block title %} 10 : {% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}Traceback:
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\core\handlers\exception.py" in inner 34. response = get_response(request)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\wagtail\core\models.py" in _get_response 1254. response = response.render()
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\response.py" in render 106. self.content = self.rendered_content
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\response.py" in rendered_content 83. content = template.render(context, self._request)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\backends\django.py" in render 61. return self.template.render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render 171. return self._render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in _render 163. return self.nodelist.render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render 937. bit = node.render_annotated(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render_annotated 904. return self.render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\loader_tags.py" in render 150. return compiled_parent._render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in _render 163. return self.nodelist.render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render 937. bit = node.render_annotated(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render_annotated 904. return self.render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\loader_tags.py" in render 62. result = block.nodelist.render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render 937. bit = node.render_annotated(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render_annotated 904. return self.render(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in render 987. output = self.filter_expression.resolve(context)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\django\template\base.py" in resolve 698. new_obj = func(obj, *arg_vals)
File "C:\Users\abdom\OneDrive\Desktop\project\wagtailmd\templatetags\wagtailmd.py" in markdown_filter 14. output_format='html5'
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\markdown\core.py" in markdown 387. md = Markdown(**kwargs)
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\markdown\core.py" in init 97. configs=kwargs.get('extension_configs', {}))
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\markdown\core.py" in registerExtensions 123. ext = self.build_extension(ext, configs.get(ext, {}))
File "C:\Users\abdom\OneDrive\Desktop\project.venv\lib\site-packages\markdown\core.py" in build_extension 178. return module.makeExtension(**configs)
File "C:\Users\abdom\OneDrive\Desktop\project\wagtailmd\mdx\mdx_mathjax.py" in makeExtension 23. return MathJaxExtension(configs)
Exception Type: TypeError at /posts/ttttt/ Exception Value: init() takes 1 positional argument but 2 were given
mdx_mathjax.py :
...ANSWER
Answered 2020-Feb-11 at 18:51You have an implementation error in your code. According to markdown
's documentation, you should define what parameters you want to provide to your custom Extension
.
And if you do not have any configurations yet, you should use something like below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install math-editor
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page