Giter VIP home page Giter VIP logo

Comments (8)

obgnail avatar obgnail commented on July 28, 2024 1

@SnowMaples

感谢反馈,最近确实没时间处理。这个插件应该只有我一个人在用 😂

新版本已经支持 tasklist 和修复。麻烦升级到新版本试用一下。

此 issue 关闭,如有问题麻烦在下面留言或另开 issue。

from typora_plugin.

SnowMaples avatar SnowMaples commented on July 28, 2024

@obgnail
你好,希望可以支持复选框渲染,主要想作为每日任务版来记录任务完成情况。

另外希望可以对timeline、kanban等上面源代码下面为显示效果的排版模式进行优化。

原因是如果timeline作为一个月的日报时,长编辑内容后,无法直接显示效果,如下图

image

可以考虑左右排版的方式进行优化,如下图
image

如果按照Typora的所写即所得的设计思路,,那么可能在 编写完语法以后直接渲染效果了(相当于嵌套了一个Typora编辑页面)。我不知道好不好做哈,这里就是提个想法,如果你比较忙,或者不好处理,可以忽略,不着急。目前这个插件已经相当完美了,非常感谢你的无私付出。

from typora_plugin.

obgnail avatar obgnail commented on July 28, 2024

@SnowMaples

趁着晚上有空连夜做了,麻烦升级到新版本试用一下。

  1. 功能在插件 【blockSideBySide】插件上,默认此插件关闭,需要开启(嵌套编辑页面是大工程,我选择讨巧的方式,将预览图移动到右边)。
  2. 暂时强制所有的图表都会并排显示(我没精力去做单独的开关了)。
  3. 如果开启此插件,当进入 Typora 就会强制开启此功能。但是支持热插拔:【右键菜单 -> 常用插件 -> 二级插件 -> 并排显示活动块】即可临时关闭,再次点击则重新启用。
  4. 你说的【复选框渲染】是 tasklist 吗,如下图
  5. 累了,睡了,有什么问题请下面反馈。

IMG_2024-07-14_00-59-27

from typora_plugin.

SnowMaples avatar SnowMaples commented on July 28, 2024

@obgnail 大可不必如此之卷(捂脸笑哭),保重身体,升级后可以了,不过tasklist这个功能在我1.6.7的版本没有生效,不知道是不是我的主题引起的,具体效果如下图。
image

早睡早起,注意身体。^_^

from typora_plugin.

obgnail avatar obgnail commented on July 28, 2024

@SnowMaples

麻烦试试换成 Typora 自带的主题,先排除主题的问题

from typora_plugin.

SnowMaples avatar SnowMaples commented on July 28, 2024

@obgnail 自带的github主题可以显示,但是不可以勾选,需要手动修改成- [X],Drake主题都不行。

image

from typora_plugin.

obgnail avatar obgnail commented on July 28, 2024

@SnowMaples

tasklist 问题

我安装了 Drake 试了一下,确实不兼容。

  • 直接原因:为了美观,Drake 采用了很反人类的实现:checkbox 的勾选框强制改成透明度为0,然后使用 :before 伪元素引用图片手动画了一个。
  • 根本原因:这个项目不是官方的,其他人在实现 theme 的时候并不会自动兼容我。同时 theme 这么多,我也没办法全部去兼容他们。
#write .ul-list li.md-task-list-item.task-list-not-done::before {
    content: "";
    background: var(--checkbox-unchecked) 0 0 no-repeat;  //  直接引用图片画了一个
    ...
}

#write input[type=checkbox] {
    opacity: 0;    //  透明度为0
    ...
}

勾选框禁用问题

现在所有的自定义代码块的预览只是一个 view,是只读的,无法通过交互修改代码块内容。后续大概率不会引入这一机制。原因更简单,成本太高。

试想一下,要想自动修改代码块内容,就需要对代码块的内容做语法解析,构建 AST,就需要引入各个语言的语法解析器。一个事实是,就算是【中英文混排优化】这个完全依赖语法解析器的功能,也只是实现了 markdown 语法解析器的子集。(当然,这里可以是只识别 tasklist 的子解析器)

当然这里可以通过更加绿皮的方式实现,但是其健壮性就会很差。(一个比较可行的方案就是在渲染 checkbox 的时候顺便记录对应的文本的所在行数,然后被 click 的时候根据所在行找到文本内容,最后使用正则替换)

实际上,最能说服我的是,业界广受好评的 mermaid,也没有做交互

总结

这两个问题我暂时不会处理。

from typora_plugin.

SnowMaples avatar SnowMaples commented on July 28, 2024

@obgnail 非常感谢你的详细回复,不处理就不处理哈,已经很好了。(下次别熬夜改了,真的,你这样熬夜,我作为白嫖的都不好意思提Issue了)

from typora_plugin.

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.