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

翻译网站时,如果底下有公式,则上一行不会翻译 #148

Open
zhitingjiang opened this issue Jun 19, 2024 · 1 comment
Open

Comments

@zhitingjiang
Copy link

在AGU的杂志翻译文章时,如果其中某一行有公式,则该行上一段文字;不会被翻译

以这篇文章(Amplified Subsurface Signals of Ocean Acidification)为例: https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2023GB007843?__cf_chl_tk=DQDpDDXHtw4VMHzJ9p5YQllcQNh0CU_XMkyUELbophQ-1718779287-0.0.1.1-8511

在公式1和2上面的一段都没有翻译出来,使用的是1.8.11版本
image

@fishjar
Copy link
Owner

fishjar commented Jun 19, 2024

规则参考:

/* 选择器 */
:is(li, p, h1, h2, h3, h4, h5, h6, dd, blockquote, .kiss-p, .paragraph-element)

/* 保留元素选择器 */
code, img, svg, pre, sub, sup, mjx-container, .inline-equation

效果:

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

No branches or pull requests

2 participants