Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

严重![BUG] #558

Open
RokasUrbelis opened this issue Apr 23, 2022 · 2 comments
Open

严重![BUG] #558

RokasUrbelis opened this issue Apr 23, 2022 · 2 comments

Comments

@RokasUrbelis
Copy link

RokasUrbelis commented Apr 23, 2022

BUG描述 | Describe the bug
markdown的代码块编辑器无法识别'$'字符,加上转移符也识别不了,稳定复现。

复现方法 | To Reproduce
以这段BASH代码为例:

while :;do
ping -c 1 $IP > /dev/null
if [ $? -eq 0 ]; then
        :
else
        count=$(expr $count + 1);
fi

sleep 60

if [ $count -ge 2 ]; then
        echo "$(date) AC Power maybe off, checking again after 3 minutes ! " >> $UPS_LOG
        sleep 180
        ping -c 1 $IP &>/dev/null
        if [ "$?" -eq 0 ]; then
                echo "$(date) Checkagain, AC Power OK ! " >> $UPS_LOG
        else
                echo "$(date) AC Power is already off, shut down ESXi Now! " >> $UPS_LOG
                /bin/shutdown.sh
                halt
        fi

else

        continue

fi
done

文章发布后,字符'$'全部被忽略

期望行为 | Expected behavior

希望可以修复,最近才发现,目前全站代码都受到此影响。

截图 | Screenshots
文章写入的实际代码段:
原始代码

文章发布后的效果:
文章发布后的效果

调试信息 | Debugging info
调试信息

其他内容 | Additional context

WP Editor.md版本:10.2.1

@RokasUrbelis RokasUrbelis changed the title [BUG] 严重![BUG] Apr 25, 2022
@LuRenJiasWorld
Copy link
Owner

LuRenJiasWorld commented Mar 8, 2023

你好,可以暂时尝试一下在设置中关闭 LaTeX 支持,试试看能否解决这个问题,后续会尝试修复 $ 符号和 LaTeX 渲染的冲突问题。

@LuRenJiasWorld
Copy link
Owner

wp_editor_md_2023-04-15-21-58-32.zip
你好,如果方便的话,请尝试安装一下这个最新的构建版本,看看问题是否得到解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants