-
Notifications
You must be signed in to change notification settings - Fork 42
Live previewing make editor stuck #200
Comments
Hello, Have you trying the same thing with the Markdown preview ? |
Yes, Markdown preview is very smooth. But, recently, after I upgrade atom to 1.11.2, it seems that Asciidockor preview back to normal. |
We can close this issue ? |
Same issue here. I'm developing a small library prototype which you can see here. However Atom is stuck rendering it: |
@Foadsf Could you please open the devtools and look for errors in the console ? |
@Mogztter Could you pleas elaborate with the instructions? My code is here BTW if you want to try yourself. |
I can't find any documentation on Atom but https://flight-manual.atom.io/hacking-atom/sections/debugging/#diagnose-runtime-performance |
@Mogztter Nothing shows up with that keyboard shortcut. from the menu bar maybe? |
@Mogztter aha ctrl+shift + I on windows link |
I think it's related to #279 (comment) If I have some time tonight I will submit a pull request 😉 @Foadsf Could you please confirm that disabling tree-sitter parsers, solve your issue ? |
@Mogztter I have no idea how I should disable the "tree-sitter parsers" but I suppose it is something discuses on those links. I will do this tonight too. Anyways my code is here for testing. I appreciate your kind support. |
Not really, here's a detailed guide:
You're welcome, I'm glad to help 🤗 |
@Mogztter It does render now, however the collapsible section oesn't work and the code block inside it doesn't have syntax highlighting! P.S. in fact none of the syntax highlighting works, and it was one of the main reasons I opted Atom against vscode as I have explained here. |
@Mogztter I checked on a different computer. Now the syntax highlighting works upon disabling |
I don't think collapsible blocks is a feature of this plugin. |
isn't the rendering engine of this plugin and vscode one the same? |
Yes and no. The preview window uses Asciidoctor.js. But the editor window uses a very different technology stack. |
the editors window is great in both atom and vscode. No issues there. foldable / collapsible part I have implementation using HTML tags doesn't work in the preview section of Atom. |
I'm afraid I don't know what you are talking about. Is this a custom extension you've added to the converted page? Could you show a screenshot or code? |
here my code. please note the part with
of course these need to be between |
This could be a limitation of the HTML viewer in Atom. Have you tried the same thing in the Markdown preview? Btw, I strongly recommend against putting HTML directly in your AsciiDoc file. It would be much better if you created a custom block extension (or custom converter). It looks like you are attempting to implement asciidoctor/asciidoctor#1699. |
Markdown :Code:/*
This is the markdown **text**
used for documentation
<details>
<summary>Click to see the source code</summary>
``` scilab
*/
This is the
actual code
which will
be executed
/*
```
</details>
<!--- */ // --> GitHub:/* This is the markdown text used for documentation Click to see the source code*/
This is the
actual code
which will
be executed
/* Atom:VSCode: |
AsciiDoc:Code:////
/*
////
This is the markdown **text**
used for documentation
+++ <details><summary> +++
Click to see the source code
+++ </summary><div> +++
[source,scilab]
....
*/
This is the
actual code
which will
be executed
/*
....
+++ </div></details> +++
////
*/
//// Github/* used for documentation +++ +++ |
Dear @mojavelinux and @Mogztter should I open a new issue for the Atom live preview not rendering the |
The stylesheet provided by Asciidoctor Ruby will carry over to the Atom live preview once Asciidoctor.js is upgraded (the stylesheet is part of the upgrade). |
@Mogztter and @mojavelinux the Atom plugin just got updated and now the live preview syntax highlighting doesn't work anymore. Should I open a new issue for this or it is relevant to any of other issues we already have and I should just wait for the new PRs? |
@Foadsf could you open a new issue? |
Description
When I opened live previewing and typed in editor, the editor got stuck for a few seconds, however,
when live previewing is closed, the editor runs smoothly.
asciidoc-preview
version: 2.6.0language-asciidoc
version: 1.5.1Activity Monitor shows
fontd
process at high cpu usage state:The text was updated successfully, but these errors were encountered: