Comments (9)
这个是设计如此,要开启上下标语法才能解析。
from siyuan.
问题是,复制样式,剪贴板查看本身就是html样式<sub>
和<sup>
,是思源给处理为了Markdown语法
并不是复制Markdown上下标语法粘贴到思源
from siyuan.
没有办法处理,思源内部是用 Markdown 语法解析的,如果关闭了语法开关,则无法解析。
from siyuan.
不能剪藏默认把上下标改为<sup></sup>
和<sub></sub>
吗?
现在思源也是支持直接粘贴<sup></sup>
和<sub></sub>
,解析上下标的,只要剪藏默认是把上下标转换为html标签,就可以关闭开关也能渲染了
from siyuan.
语法开关关闭后,不支持Markdown语法输入和粘贴的解析是合理的
但是关闭后连富文本的样式都不能解析的话,这个开关的意义就不大了
现在是关闭上下标语法之后,从word复制带有上下标内容,也是无法解析样式
from siyuan.
那暂时没有办法了,等后面有空看看能不能解决吧。
from siyuan.
目前上下标的剪藏,我觉得可以把默认的解析语法改为<sup></sup>
和<sub></sub>
,毕竟现在的默认导出上下标已经是html语法了,输入却是Markdown的^
和~
就有问题。
但是考虑之后要添加斜体等样式的语法开关的话,
可能要对富文本的粘贴单独进行解析,而不考虑Markdown语法解析开关,这样可以在不影响粘贴富文本的情况下,关闭Markdown特定语法的输入,不知道这样能不能实现?
from siyuan.
from siyuan.
在不影响粘贴富文本的情况下,关闭 Markdown 特定语法的输入
这个应该是关键
from siyuan.
Related Issues (20)
- Improve HTML math clipping HOT 4
- Do not clip the `Edit` element next to Wikipedia headings HOT 1
- 文件历史支持比较 HOT 1
- Improve duplicating for a doc with databases HOT 2
- 一个模板 queryBlocks 的问题 HOT 5
- Improve task list redo
- 改进列表项末尾删除
- 不同窗口打开同一个文档编辑,文档内容块顺序错误 HOT 2
- Add an internal kernel API `/api/av/appendAttributeViewDetachedBlocksWithValues` HOT 2
- 多窗口间拖拽内容块时异常
- When editing in multiple windows, the doc cannot be opened normally in a new window HOT 3
- 支持选中搜索框中的部分文本后使用 `Ctrl+F` `Ctrl+P` ;如果此时光标在搜索框内没选中文本,则效果相当于全选搜索框文本 HOT 14
- 编辑条目后不重新渲染整个数据库
- 改进剪藏 HOT 1
- Extension for firefox
- 数据库的单选和多选列支持设置指定选项默认颜色 HOT 1
- 数据库导出模板后,支持在模板里指定数据库标题
- 回环地址不被识别并要求设置授权码
- Android: catch SEND intents to import text HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siyuan.