문제

I have recently started using markdownsharp. 1).... 2)....

The problem is that when I use single return key i.e (\n) then there is no effect. When I do use \n\n then the MarkdownSharp represent it as paragraph tag istead. However, I want the \n to have effect. How does that work then?

올바른 솔루션이 없습니다

다른 팁

Markdown intentionally ignores single returns: http://daringfireball.net/projects/markdown/syntax#p

The implication of the “one or more consecutive lines of text” rule is that Markdown supports “hard-wrapped” text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type’s “Convert Line Breaks” option) which translate every line break character in a paragraph into a
tag.

When you do want to insert a
break tag using Markdown, you end a line with two or more spaces, then type return.

So, add two spaces at the end of a line, then hit return and it will be parsed as a
(line break).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top