Giter VIP home page Giter VIP logo

Comments (6)

tylerlong avatar tylerlong commented on August 20, 2024

确实会有这样的问题。 未来版本会想办法改进。

from markdown-plus.

tylerlong avatar tylerlong commented on August 20, 2024

已更新。 最新版本按heading同步。
即 h1 - h6 的标题 以可视区域最上方为参照,右侧与左侧是同步的。
当左侧编辑器显示第一行为一个heading时,右侧预览最上方也显示这个heading。
相邻两个heading之间的内容是按照百分比同步的。

from markdown-plus.

tylerlong avatar tylerlong commented on August 20, 2024

如果相邻两个heading之间的内容很长, 同步还是会有瑕疵。
我看了下stackedit等编辑器,它们也没有很好地解决这个问题。
更加好的办法是把<p>的相对同步也考虑进来。 下个版本可能会在这方面进一步加强。

from markdown-plus.

AlloVince avatar AlloVince commented on August 20, 2024

赞!目前确实没有特别好的方法,能按heading同步已经能满足大部分需要了

from markdown-plus.

tylerlong avatar tylerlong commented on August 20, 2024

v1.3.8 版本进一步改进了这个问题。 现在所有的顶级元素都是左右同步的, 包括 heading, <p>, <table>,<ul>,<pre>,<blockquote> 等等。
左右滚动同步应该已经做到极致了。

from markdown-plus.

AlloVince avatar AlloVince commented on August 20, 2024

试了一下效果,非常赞

from markdown-plus.

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.