不应该在内容未加<!-- markdown -->标签的情况下启用行内公式。
https://hu60.cn/q.php/bbs.topic.107159.html?floor=1#1
https://next.hu60.cn/topic/107159#floor-1


@七号,首页也在疯狂请求user.info,这种频率我绝对不能接受。
如果 https://hu60.cn/q.php/index.index.json?p=1&pageSize=30&_topic_summary=180&_uinfo=name,avatar,sign,contact&_time=1 得不到想要的信息,请立即告诉我,我马上作为扩展添加到 _uinfo 内。
@七号,虎绿林之前也实现了通过[math]a+b[/math]或《公式:a+b》UBB嵌入latex数学公式(https://hu60.cn/q.php/bbs.topic.95320.html#nav)。
不支持$分隔符主要就是为内容兼容性考虑。
还有我突然想到,如果用户把 $ 当作“美元”来用呢?
考虑以下内容:
XXX VPS大甩卖,1G+20G $1,2G+40G $2,4G+80G $5,8G+200G $8!
真的要给每个 $ 都添加 \ 转义吗?
{
"error": "true",
"errInfo": {
"code": 401,
"message": "用户未登录或掉线,请先登录。",
"file": "/www/wwwroot/hu60.cn/src/class/bbs.php",
"line": 78,
"trace": "#0 /www/wwwroot/hu60.cn/src/class/bbs.php(533): bbs->checkLogin()\n#1 /tmp/hu60/tplc/json_jhin_bbs^5c5ffd5c5d3a0cd51b0ceb5e289031c2e3cf9306_0.tpl.topic.php(108): bbs->isFavoriteTopic()\n#2 /www/wwwroot/hu60.cn/src/class/smarty/sysplugins/smarty_template_resource_base.php(123): content_6a670fa1f1e965_49795511()\n#3 /www/wwwroot/hu60.cn/src/class/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()\n#4 /www/wwwroot/hu60.cn/src/class/smarty/sysplugins/smarty_internal_template.php(206): Smarty_Template_Compiled->render()\n#5 /www/wwwroot/hu60.cn/src/class/smarty/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()\n#6 /www/wwwroot/hu60.cn/src/class/smarty/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute()\n#7 /www/wwwroot/hu60.cn/src/page/bbs/topic.php(131): Smarty_Internal_TemplateBase->display()\n#8 /www/wwwroot/hu60.cn/src/q.php(79): include('...')\n#9 {main}"
}
}