Comments (4)
I'm assuming this is due to a scroll sync based on an absolute position.
It's based on the html element in the DOM. It should match. I have some
bug. Can you please email the example file to me at [email protected]?
, could it synchronize based on a percentage of the position in the file
instead?
That wouldn't work. Imagine how an image could be one line in the source
file and two screens high in the preview.
On Mon, Mar 9, 2015 at 6:00 PM, fredlebel [email protected] wrote:
A large MD file will tend to lose sync offset as the file is scrolled
down. The offset can even grow as large as a full screen height. I'm
assuming this is due to a scroll sync based on an absolute position.If possible, could it synchronize based on a percentage of the position in
the file instead? That way, scrolling even 90% would still be accurate.
Scrolling to the bottom would synchronize to the bottom of the preview.—
Reply to this email directly or view it on GitHub
#3.
from markdown-scroll-sync.
Try this MD as an example: https://github.com/baskerville/bspwm/blob/master/doc/bspwm.1.txt
from markdown-scroll-sync.
Thanks. I'll work on this tomorrow.
On Mon, Mar 9, 2015 at 8:11 PM, fredlebel [email protected] wrote:
Try this MD as an example:
https://github.com/baskerville/bspwm/blob/master/doc/bspwm.1.txt—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from markdown-scroll-sync.
I improved the accuracy of the sync in your file until I got to the first instance of ~~~~~~
. This is not meaingful markdown. ~~
is meant to surround strike-out text. So having three of these in a row would mean the text following is to be strike-through. However markdown-preview screws up and shows the following text as a code
block. If you remove all those tildes everything works great. You can see this for yourself.
Since everything is screwed up I can't sync it. Sorry. I would suggest submitting an issue to atom/markdown-preview
.
Thanks again. I wouldn't have learned any of this without your help.
I have released the improved syncing version as 0.2.0
from markdown-scroll-sync.
Related Issues (20)
- HTMLElement.shadowRoot is deprecated.
- Failed to activate the markdown-scroll-sync package
- Failed to activate the markdown-scroll-sync package
- HTMLElement.shadowRoot is deprecated.
- Failed to activate the markdown-scroll-sync package
- Failed to activate the markdown-scroll-sync package
- Failed to activate the markdown-scroll-sync package
- HTMLElement.shadowRoot is deprecated.
- HTMLElement.shadowRoot is deprecated.
- HTMLElement.shadowRoot is deprecated.
- Failed to activate the markdown-scroll-sync package
- Failed to activate the markdown-scroll-sync package
- Failed to activate the markdown-scroll-sync package
- Failed to activate the markdown-scroll-sync package
- Failed to activate the markdown-scroll-sync package HOT 1
- Failed to activate the markdown-scroll-sync package
- HTMLElement.shadowRoot is deprecated.
- Failed to activate the markdown-scroll-sync package
- HTMLElement.shadowRoot is deprecated.
- Failed to activate the markdown-scroll-sync package
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 markdown-scroll-sync.