-
Notifications
You must be signed in to change notification settings - Fork 39
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
bugfixes & highlight #4
Conversation
可能需要刷一下cdn,对字体有改动 |
这个渲染空树洞和只有空格的树洞,会有黑屏问题嘛 |
现在应该是不会了,可能还是得测试下 我昨天晚上把环境清了,要不你来测吧 |
好,我来测 |
const parser = new HtmlToReact.Parser() | ||
|
||
return parser.parseWithInstructions(renderedMarkdown, node => node.type !== 'script', processInstructions) | ||
if (props.author && props.text.match(/^(?:#+ |>|```|\t|\s*-|\s*\d+\.)/)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个regex会不会出什么特殊情况之类
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加了$$的判断,我重开一个pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
这个是把回复中第一行出现h1什么的特判掉,应该没有别的情况了?可能应该添加个$$On Tue, Jun 23, 2020 at 10:54, thuhole <notifications@github.com> wrote:
@thuhole commented on this pull request.
In src/Common.js:
const parser = new HtmlToReact.Parser()
-
- return parser.parseWithInstructions(renderedMarkdown, node => node.type !== 'script', processInstructions)
+ if (props.author && props.text.match(/^(?:#+ |>|```|\t|\s*-|\s*\d+\.)/)) {
这个regex会不会出什么特殊情况之类
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
@panda2134 很奇怪,为什么外链本地测试可以,服务器暂时不行。。。我估计是CDN的问题 |
动了字体文件,需要清空cdn cacheOn Tue, Jun 23, 2020 at 11:02, thuhole <notifications@github.com> wrote:
@panda2134 很奇怪,为什么外链本地测试可以,push上去暂时不行。。。我估计是CDN的问题
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
已经确认了,是 |
No description provided.