tag:support.multimarkdown.com,2013-02-12:/discussions/betas/132-editing-formatting-getting-stuckMultiMarkdown Software, LLC: Discussion 2017-09-02T02:40:27Ztag:support.multimarkdown.com,2013-02-12:Comment/433227632017-08-30T16:12:36Z2017-08-30T16:12:37ZEditing formatting getting stuck<div><p>B24 on OSX 10.12.6, using the MMD standard Solarized theme.</p>
<p>I'm having a lot of instances of the editing formatting getting "stuck." For example, in a list, where the text is normally a different color (I'm not good with colors, so I'm not even going to attempt to describe what that color is), I'm getting new list items where the text color remains gray (the "normal" text color). I'm attaching an example of that.</p>
<p>I've also had it where the list color was right, but when I accented a word to mark it as code, e.g. <code>like this</code>, what was in the accents didn't change color <em>or</em> font (again, on the editing side, the Preview is OK).</p>
<p>I've also had it where the code formatting got stuck, i.e. in a case <code>like this</code>, what followed the "like this" stayed in the color and font of the code block, instead of resetting back to the normal list formatting after the second accent.</p>
<p>Those examples are all while in a list, but it's not restricted to that — I just had it get stuck while in normal text (code didn't show as code). I'm attaching a second screen print of that. In this case, I chose a blank line below the list (IOW, I didn't hit Enter on the last line of the list, I positioned to an already existing blank line below the list), hit Enter, and started typing. Code formatting didn't work.</p>
<p>One or the other has happened several times to me very shortly after I started using B24 this morning. I switched over to the test file, and it happened there as well. There's no particular set of steps to make it happen, it just starts happening. I'm editing towards the end of the test document.</p></div>Vincetag:support.multimarkdown.com,2013-02-12:Comment/433227632017-08-30T16:32:36Z2017-08-30T16:32:36ZEditing formatting getting stuck<div><p>If you can figure out how to reproduce it, let me know. I've seen it<br>
happen once, maybe twice, and that was weeks ago.</p>
<p>Basically, there are two options when formatting a document like<br>
Markdown where earlier lines can effect the meaning of later lines (e.g.<br>
fenced code blocks):</p>
<ol>
<li>
<p>Reparse the entire document to make sure nothing has changed</p>
</li>
<li>
<p>Attempt to identify the smallest possible unit of text to reparse</p>
</li>
</ol>
<p>Option 1 is feasible, but can start to hurt performance in long<br>
documents (some people write novels in Composer). So that's out.</p>
<p>Option 2 requires a smart algorithm to identify the proper range. And<br>
there are <em>tons</em> of edge cases here.</p>
<p>I spent months of testing in v3 to create a (rather complex) algorithm<br>
that worked reliably. In v4 I wanted to try to create something simpler<br>
and faster. The vast majority of the time it works, but it can be<br>
fooled (again, fenced code blocks being an easy example). Now that<br>
other stuff is settling down, I'll go back to that algorithm, but edge<br>
cases that don't work are very helpful in improving it.</p>
<p>(PS> Nothing should have changed about this in b24)</p>
<p>Thanks!</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/433227632017-08-30T16:56:02Z2017-08-30T16:56:02ZEditing formatting getting stuck<div><p>As I said, it's happening to me pretty regularly in both my real file and the test one I sent you. I just had it get locked on code formatting. I deleted the entire sentence including the code, saved the file, then exited and re-opened MMD. This time when I started typing, the list formatting is locked; an accented word doesn't show up as code. So the opposite of what was happening. But it happened in a brand new started MMD.</p>
<p>That's as much as I'm going to be able to tell you.</p>
<p>And whether it "should" have changed or not, I haven't seen this prior to B24.</p></div>Vince Ricetag:support.multimarkdown.com,2013-02-12:Comment/433227632017-08-30T17:26:31Z2017-08-30T17:26:31ZEditing formatting getting stuck<div><p>It's not something I can replicate, so if you're able to figure out anything more specific, let me know.</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/433227632017-08-30T17:55:38Z2017-08-30T17:55:39ZEditing formatting getting stuck<div><p>I feel like you're putting this back on me. I've already spent several hours putting together a test file for you. I've given you screen shots that shows where it happened and what it looked like when it did. I've told you where I was editing (which you can also see in the screen shots) when it happened. I've indicated that sometimes it happens in the first editing that occurs in a file, and sometimes it happens after a while, but that it is happening pretty consistently. There are no "steps" to make it happen. It just starts happening, just like the bouncing around issue.</p>
<p>If you can't replicate it, then you can do more testing to see if you can, or ask (specific) questions if you need more information that hasn't been provided, or put together an instrumented app, or any of a number of other things. Or you can ignore it and release the app with the problem. But whatever happens next, it's in your hands, not mine. I have given you all of the information that I know to give.</p></div>Vince Ricetag:support.multimarkdown.com,2013-02-12:Comment/433227632017-08-30T19:38:25Z2017-08-30T19:38:25ZEditing formatting getting stuck<div><p>I'm not putting it back on you. I'm simply informing you that I use<br>
this app a lot, and haven't seen this behavior in weeks (many versions ago).</p>
<p>I should also note that only one person has reported this issue, and he<br>
noted that the problem disappeared and he has presumably not recreated<br>
it since (I haven't heard anything new).</p>
<p>You report having this issue frequently.</p>
<p>Presumably there is something different about the way you type in your<br>
files than the way I type in mine (like the French Canadian example I<br>
gave you.) If the app caused this much trouble for me, I would not have<br>
released it without fixing it first.</p>
<p>This makes it very unlikely that I will stumble across a recreation,<br>
since I don't write in French (to continue the analogy.)</p>
<p>I would like to fix the issue, but need details in order to accomplish<br>
this the "right" way (without reverting to the sledge hammer of "just<br>
reparse the entire document every keystroke").</p>
<p>If it happens again, simply stop typing. Use undo to step backwards<br>
until the problem disappears, then redo until it happens again. This<br>
will show you exactly where the problem occurred and what the change was<br>
(e.g. "I hit enter after a list bullet with 5 empty spaces after it.")</p>
<p>You can then send a copy of the text immediately before the glitch,<br>
along with what to type and where, allowing me to easily recreate the<br>
issue and ensure a working fix.</p>
<p>This should be a quick way to give me accurate information with minimal<br>
effort on your part -- simply recognizing that something strange<br>
happened that you want to have fixed, and a few keystrokes to move and<br>
back forth through the undo chain.</p>
<p>Either way, I appreciate the feedback you have given so far to help<br>
continue to improve MultiMarkdown Composer.</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/433227632017-08-30T19:44:42Z2017-08-30T19:44:42ZEditing formatting getting stuck<div><p>(ADDENDUM: If using the undo/redo approach, it's best to send the <em>two</em> steps leading up to the issue to better ensure that some of the "hidden" variables are the same)</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/433227632017-09-02T02:40:26Z2017-09-02T02:40:26ZEditing formatting getting stuck<div><p>I found an issue in highlighting that is probably what caused this. Fixed for b27. If it returns, please open a new issue with as many specifics as possible. Thanks!</p></div>Fletcher