Using the Markdown Editor
The Markdown Editor cleans the Markdown you type and counts its words. The field is labeled Markdown. It starts as a line # Hi, a blank line, and Hello. Choose Clean the Markdown. The label above the headline reads Words. The headline is 3. The text is that Markdown followed by " is 3 words." The first line of the text is # Hi. A blank line follows. The last line reads Hello is 3 words. The Words line is 3, matching the headline. The page trims each line and does not store the document.
The # mark is counted as a word, so the count is 3, not 2. The words are #, Hi, and Hello. A count that skips the mark would stop at Hi and Hello. This page keeps the mark because a space separates it from Hi. The about line says each line loses leading and trailing spaces, blank lines stay, and words are sequences separated by spaces. The steps under the result say to trim each line, count the words, and state that the document is not stored.
Before you choose Clean the Markdown, the headline reads Enter Markdown and the label reads Result. A field that is empty after trimming, or a paste longer than 20000 characters, is refused with Enter from 1 to 20000 characters. Reset returns the field to the line # Hi, the blank line, and Hello, the headline to Enter Markdown, and the label to Result. Copy result copies the text. Copy it before you reset. This page is the Markdown Editor. The Markdown Previewer is a separate page, and Markdown to HTML is a separate page.
What the Headline 3 Measures
The headline is the word count for the Markdown you typed. For the sample, that count is 3. The Words line repeats 3. The text keeps the cleaned lines and then says is 3 words. The label above a successful run reads Words. If you quote the headline alone, say it is the word count. 3 is the number of words. It is not a heading level, and it is not a character total. The # mark, Hi, and Hello are the three words behind that headline.
An error headline means the words were not counted, and the text and the line are cleared. The runner refuses that paste with Enter from 1 to 20000 characters. The message covers a field that is empty after trimming and a paste longer than 20000 characters. A field of only spaces is empty after trimming, so it uses that same message. The sample is inside the bound. Its headline is 3. Copy result does not copy an error message.
How # Hi and Hello Become 3 Words
The page splits the Markdown on line breaks, trims each line, and joins the lines again. Blank lines stay as blank lines. Words are the sequences separated by spaces, including the space between # and Hi. The first line # Hi is two words. Hello is the third word. The blank line adds none. The total is 3. The text appends a space and is 3 words to the cleaned Markdown, so the last line reads Hello is 3 words. The steps are trim each line, count the words, and the document is not stored.
Interest on a principal is a different product. The Simple Interest Calculator multiplies principal by an annual percent and by years. A principal of 1000 at 5 percent for 2 years earns interest of 100 and a total of 1100. The headline there is the interest. That page does not trim Markdown lines or count the # mark. Use it when the sample principal of 1000 should earn interest of 100. Use this page when the line # Hi, a blank line, and Hello should return a headline of 3.
What the Word Count Does Not Build
The page returns cleaned lines and a word count. It does not build an h1, a paragraph element, or an HTML preview. The headline is 3, and the label is Words. The Markdown Previewer, given the same lines, uses the headline HTML preview and the label Preview. Markdown to HTML uses the headline HTML and the label Converted. Those pages are separate. This page trims each line, counts the words, and does not store the document.
From the Sample Lines to 3 Words
Leave the field as the line # Hi, a blank line, and Hello. Choose Clean the Markdown. The headline is 3. The label reads Words. The Words line is 3. The text begins with # Hi, keeps the blank line, and ends with Hello is 3 words. Choose Clean the Markdown again. The figures match. Change the field to Hello. The headline is 1 and the text is Hello is 1 word. Restore the sample and confirm the headline is 3.
A compounded amount is a different figure. The Compound Interest Calculator compounds a principal at an annual percent. A principal of 1000 at 5 percent, compounded 1 times a year for 1 years, is 1050. The interest line there is 50. The headline there is the amount. That page does not count the # mark as a word. Use it when the sample principal of 1000 should become 1050. Use this page when the cleaned text should end with is 3 words.
Counts That Drop the # Mark
A common miss is to count Hi and Hello and skip the # mark. That reading is 2. This page counts the mark, so the headline is 3, not 2. The text ends with is 3 words. Another miss is to read the headline 3 as a heading level. The label reads Words. Another miss is to expect an h1 or a paragraph element in the text. This page does not build those tags. The Markdown Previewer and Markdown to HTML are separate pages, and their headlines are HTML preview and HTML.
A comparison that does not pick a base is a different percent. The Percentage Difference Calculator uses the absolute difference divided by the average of the absolute values, times 100. The absolute difference of 40 and 50 is 10. The average of the absolute values is 45. The percentage difference is 22.22. That page does not count words in Markdown. Use it when you are comparing 40 and 50. Use this page when # Hi and Hello should return 3 words.
Keeping the Cleaned Lines and the Count
Copy the text. It holds the line # Hi, the blank line, Hello, and the closing is 3 words. A note that says only 3 can be this count or a count from a different paste. The text keeps the roles together. The Words line repeats 3. Copy the text before you reset. Reset returns the headline to Enter Markdown, the label to Result, and the field to the sample lines. The text and the Words line are cleared.
A margin from revenue and cost is a different percent. The Profit Margin Calculator subtracts cost from revenue and divides that profit by revenue. Revenue of 200 and cost of 150 give profit of 50 and a margin of 25 percent. The headline there is the margin percent. That page does not trim Markdown lines. Use it when the inputs are revenue and cost and the sample margin is 25 percent. Use this page when the record you need is the cleaned lines and the count 3.
The Count for the Lines You Typed
The headline answers how many words the trimmed lines contain. From the line # Hi, a blank line, and Hello, the answer is 3. From Hello alone, the answer is 1, and the text uses word. From Hi Hello on one line, the answer is 2. From a field of spaces, or from a paste longer than 20000 characters, the answer is Enter from 1 to 20000 characters. The # mark is counted as a word on the sample. The label on that successful run reads Words.
Checking the Split and the Trim
Count the words by splitting on spaces. On the first line, # is one word and Hi is the next. Hello is the third. The blank line adds nothing. Compare 3 with the headline and with the Words line. If they disagree, the field changed between the run and the check. Trim the line ends before you count, because the page trims each line. Spaces at the ends of # Hi or Hello do not add words. A missing space in #Hi joins the mark to Hi, and Hello then makes a headline of 2.
A sale price after one discount percent is a different reduction. The Discount Calculator multiplies a price by one percent and subtracts. A price of 80 at 25 percent is a discount of 20 and a sale price of 60. The headline there is the sale price. That page does not count words. Use it when the sample price of 80 at 25 percent should return a sale price of 60. Use this page when the sample lines should return a headline of 3.