Closed dvdvideo1234 closed 5 years ago
Hi @dvdvideo1234
Have you tried updating the plugin to release 0.8.1 https://github.com/nea/MarkdownViewerPlusPlus/releases/tag/0.8.1?
What do you mean by: "Replace all the three backticked tokens with \n"
And regarding the fast typing: Yeah, I know. At the moment every change triggers a redraw. In your case a redraw of a pretty big document with large images. I am still working on adding a delay to this to counter quick typing in one of the next releases. Another thing would be to have images disabled. Never thought about that.
Thanks
Have you tried updating the plugin to release 0.8.1
So far I did not, the plugin manager shows that it has no updates pending
What do you mean by: "Replace all the three backticked tokens with \n"
Open the file via Npp:
```
Extended
checkbox on the search optionsReplace with
write \n
Replace all
So far crashes when it is maximized on the left and right monitor. When it is not maximized, it is rather more sturdy when processing the MD. Is it that the file is too big and the rendering it taking more time than the the time between characters are written. It does not crash when I write like 1 char a second ..
Hey @dvdvideo1234
Ok, does not crash for me. Really seems to be the load in redrawing. Thanks for the big example document, so I can check with this use-case furthermore to identify what to do.
Until then... sorry ^^'
Np. ;) The document is not critical for me, but some people are having trouble reading it, because I gotta put quite a lot of stuff in there to explain everything in my code, so some suggested that I should at least put #
headers to break it apart. Apparently that way is far more stable when editing in NPP. \
Is it going to be better if the re-drawing is like synced in half of a second for example and triggered IFF a flag is present and key is pressed ?
Something like pseudo OOP code in C++ :
// Initialize the timer to raise a pulse every cycle `Example: half a second`:
TIMER_t TIMER = cTimer(0.5); // A timer generating 0.5s (configuration controlled)
BUFFER_t BUFFER = cBuffer(""); // A buffer storing what the user types
MARKDOWN_t MARKDOWN; // A markdown rendering instance
DRAWF_t *MDF; // A markdown draw frame instance pointer
if(TIMER.isReset())
// Timer RESET has arrived. Half a second has passed. A pulse is generated
TIMER.clearReset(); // Clear the flag
MDF = MARKDOWN->getFrame();
if(strcmp(BUFFER.getKeyPress(), "") ~= 0 && !MDF->isRendering())
{ // If there are pressed keys in the buffer by the user
BUFFER.clear();
MDF->Draw();
}
}
Here is the error, the information, .NET stuff and WER crashlog Report.wer about it extracted from the windows event viewer. I know it's not much, but it might help ;)
Hello,
I found a workaround for my problem, which I used to update the document. I switched off the markdown viewer, made my edits and toggled a preview. For now the preview does not show the full document, but rather renders it to here, where sub-point 2 is the last rendered data and sub-point 3 is not rendered. The information equal and later than this is not rendered at all. I assume that there is an option which saves the buffer from overflow and prevents the rendering over the other half of the document.
Cheers !
I've relocated the markdown readme to the github Wiki. Problem solved :smile_cat:
Issue description
\n
Markdown to reproduce
I think this is pretty self explanatory
Screenshot
Environment
I have to add more stuff to this file so this is kinda blocking for me, though am not a rush to fix it.