和 Codex 一块儿搓了个新前端 hu60next
{
"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}"
}
}
@rkonfj,我倾向于采用类似
<!-- markdown -->的方案来支持行内公式,比如添加<!-- math -->标记然后让用户自主开启(或者前端智能检测到用户插入公式时自动添加该标记)。之后我可能会把基于
<!-- math -->标记的行内公式解析功能添加到后端。