How to output <!--more--> as string

Hi everyone.
I’m mosuke5. It’s first post.

I know basically tag is used to split the article for summary.

However, I’m writing the post about ‘How to use in Hugo’.

For example, I wrote following sentence in markdown docs.

You may add the `<!--more-->` summary divider where you want to split the article.

Then, above sentence is converted to like following.

You may add the HUGOMORE42 summary divider where you want to split the article.

I would like to view as string not html tag for splitting article.
Do you know the solution for this problem.

Hello @mosuke5,

as far as I understood you want to preserve <!--more--> as a string and don’t want Hugo to interpret it as a summary divider.

On the documentation page you linked we had to prevent the interpretation of <!--more--> as well in order to document it. The workaround is quite simple - we’ve to encode the string manually:

<code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code>

Your browser will display the string as <!--more--> but for Hugo &#60;&#33;&#45;&#45;more&#45;&#45;&#62; isn’t the same as the string <!--more-->.

Thank you a lot. I understand it!