Giter Site home page Giter Site logo

Comments (9)

88250 avatar 88250 commented on July 30, 2024

这个是设计如此,要开启上下标语法才能解析。

from siyuan.

Achuan-2 avatar Achuan-2 commented on July 30, 2024

问题是,复制样式,剪贴板查看本身就是html样式<sub><sup>,是思源给处理为了Markdown语法
并不是复制Markdown上下标语法粘贴到思源

from siyuan.

88250 avatar 88250 commented on July 30, 2024

没有办法处理,思源内部是用 Markdown 语法解析的,如果关闭了语法开关,则无法解析。

from siyuan.

Achuan-2 avatar Achuan-2 commented on July 30, 2024

不能剪藏默认把上下标改为<sup></sup><sub></sub>吗?
现在思源也是支持直接粘贴<sup></sup><sub></sub>,解析上下标的,只要剪藏默认是把上下标转换为html标签,就可以关闭开关也能渲染了

from siyuan.

Achuan-2 avatar Achuan-2 commented on July 30, 2024

语法开关关闭后,不支持Markdown语法输入和粘贴的解析是合理的
但是关闭后连富文本的样式都不能解析的话,这个开关的意义就不大了
现在是关闭上下标语法之后,从word复制带有上下标内容,也是无法解析样式

from siyuan.

88250 avatar 88250 commented on July 30, 2024

那暂时没有办法了,等后面有空看看能不能解决吧。

from siyuan.

Achuan-2 avatar Achuan-2 commented on July 30, 2024

目前上下标的剪藏,我觉得可以把默认的解析语法改为<sup></sup><sub></sub>,毕竟现在的默认导出上下标已经是html语法了,输入却是Markdown的^~就有问题。
但是考虑之后要添加斜体等样式的语法开关的话,
可能要对富文本的粘贴单独进行解析,而不考虑Markdown语法解析开关,这样可以在不影响粘贴富文本的情况下,关闭Markdown特定语法的输入,不知道这样能不能实现?

from siyuan.

88250 avatar 88250 commented on July 30, 2024

from siyuan.

TCOTC avatar TCOTC commented on July 30, 2024

在不影响粘贴富文本的情况下,关闭 Markdown 特定语法的输入

这个应该是关键

from siyuan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.