和 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}"
}
}
回复编辑器中的粗体、
代码
等功能无效,因为未添加 <!--markdown --> 标签,markdown模式根本没有启用。
img标签中的style被忽略,导致用于限制图片大小的#宽度语法失效。
《图片:https://file.hu60.cn/file/hash/png/f15e71e06fbaf3a29a3995e70e8035fd59905.png,image.png(58.5 KB)#300》
@rkonfj,我倾向于采用类似
<!-- markdown -->的方案来支持行内公式,比如添加<!-- math -->标记然后让用户自主开启(或者前端智能检测到用户插入公式时自动添加该标记)。之后我可能会把基于
<!-- math -->标记的行内公式解析功能添加到后端。