tag:support.markedapp.com,2011-09-11:/discussions/problems/152849-word-count-includes-html-commented-out-regionsMarked: Discussion 2019-05-30T13:20:53Ztag:support.markedapp.com,2011-09-11:Comment/472424022019-05-08T15:56:25Z2019-05-08T15:56:25ZWord count includes HTML-commented-out regions<div><p>Hi Paul,</p>
<p>This definitely shouldn't be happening, I'll look into it for the next<br>
update. Thanks for the report.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/472424022019-05-08T21:32:05Z2019-05-08T21:32:05ZWord count includes HTML-commented-out regions<div><p>I'm doing some testing and not seeing this happen at all. Word count in the bottom bar appropriately updates whenever I comment anything out. Can you attach an example file with some text commented out that shouldn't be counted? I'll uncomment and see if the count changes, I just want to see if you're doing something I'm not expecting when I parse the formatting.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/472424022019-05-09T05:26:03Z2019-05-09T05:26:04ZWord count includes HTML-commented-out regions<div><p>Hi Brett</p>
<p>Attached are the document which shows the effect, and some screen shots, with commented in/out region (beginning with 'Security researchers').<br>
Note: Changing style or using floating stats shows the same numbers. Adding a word to a commented out region does affect the word count (I added 'ONE' for that purpose.)<br>
I have been using Marked2 for years but only recently realised what I could do with embedding HTML, and in this document, started using it for commenting in/out bits of content.<br>
Thanks</p>
<p>Paul</p></div>Paul Jacobstag:support.markedapp.com,2011-09-11:Comment/472424022019-05-09T10:32:11Z2019-05-09T10:32:11ZWord count includes HTML-commented-out regions<div><p>This is a bit baffling. I tested with your file and was unable to<br>
reproduce the issue at all. Editing within the comment didn't change the<br>
word count at all, nor did completely removing the comment. Uncommenting<br>
it changes the word count to include all of the comment's content.<br>
Everything working as I would expect.</p>
<p>I wonder if a counter is getting stuck. Try this for me: open the<br>
commented file and get the word count from the bottom of the preview.<br>
Quit Marked. Edit the file to uncomment at least one section. Launch<br>
Marked (re-open the file if necessary). Does the word count change<br>
appropriately?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/472424022019-05-09T14:01:25Z2019-05-09T14:01:26ZWord count includes HTML-commented-out regions<div><p>Yes, bizarre. I tried your suggestion, closing (quitting) Marked between edits. Same counts (1396 words) although the char count changes by 3.<br>
I commented everything out except two added words. Word count remains the same at 1396+2.<br>
I have been in Emacs for the past few months, so tried TextMate's 'remove unprintable chars'--no change.<br>
TextMate2's MD preview doesn't seem to honour HTML comments but SublimeText3 'MarkdownLivePreview' package does.<br>
There are obviously external dependencies causing the difference. I have lots of brew and macport-installed stuff for LaTeX processing, pandoc, etc., so if anything like that could be the issue, I'll dig deeper.</p></div>Paul Jacobstag:support.markedapp.com,2011-09-11:Comment/472424022019-05-09T14:15:22Z2019-05-09T14:15:22ZWord count includes HTML-commented-out regions<div><p>Just for the record, using a direct download of your file:</p>
<p><img src="http://ckyp.us/GpAIl8+" alt=""></p>
<p>Are you using a custom processor, and if so, can you share the executable path and argument fields with me? Also, and possibly more to the point, can you do a view source (⌘U) and show me (just a screenshot) what the markup looks like?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/472424022019-05-10T04:47:21Z2019-05-10T04:47:22ZWord count includes HTML-commented-out regions<div><p>Hi Brett<br>
Attached a new set of screen shots showing that inline comments work, at least on one line. Adding a newline anywhere within breaks the word count.<br>
AFAIK I have no custom processor, and there is nothing in the 'Help->Show custom processor log'.<br>
Thanks</p></div>Paul Jacobstag:support.markedapp.com,2011-09-11:Comment/472424022019-05-10T13:07:24Z2019-05-10T13:07:27ZWord count includes HTML-commented-out regions<div><p>For completeness, a richer view of inline and newline HTML commented regions in Marked HTML view.</p></div>Paul Jacobstag:support.markedapp.com,2011-09-11:Comment/472424022019-05-10T19:44:17Z2019-05-10T19:44:17ZWord count includes HTML-commented-out regions<div><p>This is utterly baffling. No matter what I try I can't get this bug to happen on my end and I don't know what else I need to ask to figure out what's different for you. I'm going to have to continue looking into it, but I've got some top priority fixes that will need to come first. I'll keep this ticket open and let you know if I'm able to solve anything!</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/472424022019-05-13T06:11:38Z2019-05-13T06:11:38ZWord count includes HTML-commented-out regions<div><p>I wiped a 2011 MBA back to the latest factory OS it will support (10.13.6) and reinstalled Marked2 from the AppStore. Both issues are gone (commenting out/Cmd-O).<br>
So, it's something on my MBP. I will go through it, uninstalling suspects, and then do a factory reset. If I find a culprit along the way, I'll update you.</p></div>Paul Jacobstag:support.markedapp.com,2011-09-11:Comment/472424022019-05-30T12:54:27Z2019-05-30T12:54:29ZWord count includes HTML-commented-out regions<div><p>Another observation that might give some clues. Bracketing words with chevrons affects the word count.</p>
<pre>
<code>one two three
<
four five six
></code>
</pre>
<p>The word count is 3. Delete either of the angle brackets and the word count is correct.</p></div>Paul Jacobstag:support.markedapp.com,2011-09-11:Comment/472424022019-05-30T13:20:53Z2019-05-30T13:20:53ZWord count includes HTML-commented-out regions<div><p>Your angle brackets are creating html-valid tags, which are always excluded from word count. I believe this is separate from the HTML comments issue.</p>
<ul>
<li>Brett</li>
</ul></div>Brett