Git Product home page Git Product logo

Comments (15)

math2001 avatar math2001 commented on June 18, 2024 1

Cool that it works now. About the &test, it's because a the & should be replaced by & A regex should solve this 😏

from markdownlivepreview.

math2001 avatar math2001 commented on June 18, 2024

It creates the group over and over again, which is weird.

  1. What build of sublime text are you using?
  2. could you give the content of your file (i tried with a fairly big file, every thing was working)

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

Hi,
I'm using latest version (build 3126) of ST3. Tested attached file with Windows as well as MacOS version.

Because files content is confidential, I replaced it with dummy text.
But effect stays the same.

testfile.zip

from markdownlivepreview.

math2001 avatar math2001 commented on June 18, 2024

I've tried with your file, but St does not crash...

Can you re do the manip (so plugin_host crashes), open up the console, and type:

view.settings().get('markdown_preview_enabled')

You should have True.

view.settings().get('markdown_preview_id')

You should have an integer.

Thanks for your time, I really appreciate it. 👍

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

Please find infos attached.
SC did not crash this time, but behave similar.
First file (ZIP) contains console log, at the very end, you'll find output of requested commands (true, 71).

After causing strange behavior, markdown preview does not even open up any more for file used.
But it works like a charm for an other (very small) test file.
I've even restarted ST3, but without any success, markdown preview does not fire up.

Thanks for YOUR time, because I am the beneficiary of your work :-)

st3-error_02
Testfile.problem.zip

from markdownlivepreview.

math2001 avatar math2001 commented on June 18, 2024

You say that MarkdownLivePreview does not do anything with large file: can you have a look in the console after trying to run the command?

Something that might affect it: what plugins do you have?

The only time that MLP is creating a new view is when the markdown view is modified (that on_modified is fired). The problem might be coming from a plugin that would edit the file as soon as you open them.

Try do disable every plugin except MLP, and see if you still have this issue. To do this quickl:

  • go to Preferences -> Package Settings -> Package Control -> Settings - User
  • copy the list installed_package
  • open your settings
  • paste the list in the ignored_packages one.

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

Thank you, that solved the issue.
I've disabled all other packages, now it works like expected.

Now I need to find the cause for this, because I depend on some of these plugins...

Anyhow, thank you for support and great tool!

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

Hi,
found the (most likely) reason for the probem: "AutoWidth" (https://packagecontrol.io/packages/AutoWidth) plugin.
After disabling it everything works like a charm again.

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

Strange behavior occurs again....

But I think I found the root cause:

As soon you are trying to use someting like xxxx&xxx (without blanks), previewer stops working.

Simple test:
create markdown file (test.mdown) containing content below - works as expected:

test & test

now change content of file to no longer separate word and & by blank:

test &test

parser goes nuts.
(This is not a rare case, because such constructs are often used in web-adresses....)

Maybe this is of help!

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

Yepp, great it works now.

But replacing & by &amp would not work in normal text (e.g. bread&breakfast would look... interesting in this case)

from markdownlivepreview.

math2001 avatar math2001 commented on June 18, 2024

But replacing & by &amp would not work in normal text (e.g. bread&breakfast would look... interesting in this case)

I don't really understand...

image

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

Hm.
It seems it is still related to my Windows-Installation.
On my Mac, system behaves (now, after disabling AutoWidth) as expected.

(Or did you fix it recently? Have seen your "fix escaping of the &..." comment)

Sorry for bothering!

from markdownlivepreview.

math2001 avatar math2001 commented on June 18, 2024

So, it's not working on window? (just to make sure we're talking about the same thing: this is about the escaping of & right?)

Sorry for bothering!

You're not bothering me at all!

from markdownlivepreview.

f8ttyc8t avatar f8ttyc8t commented on June 18, 2024

It seems your fix has solved that also.
Works in Windows as well as on Mac now.

A big "Thank You!"

from markdownlivepreview.

math2001 avatar math2001 commented on June 18, 2024

Works in Windows as well as on Mac now.

Cool! Thanks to you also!

from markdownlivepreview.

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.