There is no dependency to port py??-markdown-math, but retext does not work without it (no preview available).
@Reporter, Are there any runtime or other errors messages displayed?
(In reply to Kubilay Kocak from comment #1) Hi, here the output after hitting the "preview" button. GUI does not display any errors, just an empty preview pane: - - - - - - - 8< - - - - - - - - - - - - - - - 8< - - - - - - - Exception occurred while parsing document: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/ReText/tab.py", line 249, in updatePreviewBox self.converted = self.converterProcess.get_result() File "/usr/local/lib/python3.8/site-packages/ReText/converterprocess.py", line 184, in get_result raise ConversionError(result) ReText.converterprocess.ConversionError: The background markup conversion process received this exception: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/ReText/converterprocess.py", line 85, in _converter_process_func current_markup = markup_class(job['filename']) File "/usr/local/lib/python3.8/site-packages/markups/markdown.py", line 209, in __init__ self._apply_extensions() File "/usr/local/lib/python3.8/site-packages/markups/markdown.py", line 195, in _apply_extensions self.md = self.markdown.Markdown(extensions=list(extension_names), File "/usr/local/lib/python3.8/site-packages/markdown/core.py", line 96, in __init__ self.registerExtensions(extensions=kwargs.get('extensions', []), File "/usr/local/lib/python3.8/site-packages/markdown/core.py", line 123, in registerExtensions ext = self.build_extension(ext, configs.get(ext, {})) File "/usr/local/lib/python3.8/site-packages/markdown/core.py", line 162, in build_extension module = importlib.import_module(ext_name) File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'mdx_math' - - - - - - - >8 - - - - - - - - - - - - - - - >8 - - - - - - -
(In reply to xin3qu from comment #2) Thank you for the additional information
Hi xin3qu@protonmail.com, Are you interested in maintaining the port? It looks like I currently don't have time to maintain this port adequatly.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=80b2ec1a7f353c5ca3094e2754c6b4bd775f5e13 commit 80b2ec1a7f353c5ca3094e2754c6b4bd775f5e13 Author: Tilman Keskinoz <arved@FreeBSD.org> AuthorDate: 2021-11-10 15:57:56 +0000 Commit: Tilman Keskinoz <arved@FreeBSD.org> CommitDate: 2021-11-10 15:57:57 +0000 textproc/retext: Update to 7.2.2 Also readd dependency on py-markdown-math accidently removed in previous commit. It is required for the preview[1] Reported by: xin3qu[1] PR: 258571 [1] textproc/retext/Makefile | 3 ++- textproc/retext/distinfo | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)
committed, thanks