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

这些主题真的很漂亮 能适配做typora这款编辑器的主题css吗? #158

Open
qinkangdeid opened this issue Mar 17, 2020 · 6 comments
Assignees
Labels

Comments

@qinkangdeid
Copy link

新特性描述:
本地一直使用typora+网盘同步的方式放置文档,typora也有很多主题 但是markdown nice的漂亮啊 很喜欢 能否适配做typora这款编辑器的主题css?😄谢谢提供这么漂亮的工具

@guanpengchn
Copy link
Collaborator

可以期待下mdnice的本地编辑器哈哈

@qinkangdeid
Copy link
Author

可以期待下mdnice的本地编辑器哈哈

那就更好了 哈哈哈😄 期待期待

@huanghe1993
Copy link

主题要是支持typora就好了

@huanghe1993
Copy link

获者是本地编辑器

@ichengplus
Copy link

ichengplus commented Aug 17, 2020

Typora里,在one-dark基础上改,为md-fences增加一个伪元素:

.md-fences:before { content: ''; display: block; background: url("https://mmbiz.qlogo.cn/mmbiz_png/kSfot6Ez8O9sMTzMoHTiaTONYfwAO4ibFcahW3TKib3ngu4v5fZt3notvTJfibIIa7RudZPu2mY7Oia2u9sX7w1tUAQ/0?wx_fmt=png"); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: black; margin: 0px; background-position: 10px 10px; border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; }

在Typora里可以正常显示,但贴到公众号里就没了。
是不是公众号不支持伪元素?

@ichengplus
Copy link

ichengplus commented Aug 18, 2020

试了下,用SVG可以生成顶部的Bar,但从typora里贴进公众号时,公众号会自动增加一个段落,需要手动删除。

此外typora在渲染代码块时并没有用<code>标签,而是用<pre>,所以在微信公众号里想取消自动换行,难啊 >.<

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

No branches or pull requests

4 participants