admin管理员组

文章数量:1614997

1. 问题

Remarkble是Ubuntu下经常使用的一种支持markdown语法的编辑器,但是最新版的Remarble1.87版本却出现了无法输入行内公式问题,具体如下图所示:

2. 解决办法

打开Python安装路径下的RemarkbleWindow.py文件;

sudo gedit /usr/lib/python3/dist-packages/remarkable/RemarkableWindow.py

将第87行代码替换为如下代码:

self.default_html_end = '<script src="http://cdnjs.cloudflare/ajax/libs/highlight.js/8.1/highlight.min.js"></script><script>hljs.initHighlightingOnLoad();</script><script type="text/javascript">window.MathJax = {"showProcessingMessages" : false,"messageStyle" : "none", "tex2jax": {"inlineMath": [ ["$","$"] ]}};</script><script type="text/javascript" src="https://cdnjs.cloudflare/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></body></html>'

保存退出后即可,此时再在Remarkble中编辑行内公式效果如下:

Reference: https://github/jamiemcg/Remarkable/issues/160#issuecomment-378986185

本文标签: 编辑器公式版本Remarkble