1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 19:10:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/wikitext/Hard Linebreaks in WikiText.tid

22 lines
868 B
Plaintext
Raw Normal View History

caption: Hard Linebreaks
2013-12-14 17:05:57 +00:00
created: 20131214165710101
modified: 20240512001649319
2014-09-11 08:15:58 +00:00
tags: WikiText
2013-12-14 17:05:57 +00:00
title: Hard Linebreaks in WikiText
type: text/vnd.tiddlywiki
The usual handling of [[paragraphs in wikitext|Paragraphs in WikiText]] causes single line breaks to be ignored, and double linebreaks to be interpreted as the end of a paragraph.
This behaviour isn't convenient when dealing with material that incorporates hard linebreaks - for instance, poetry. You can mark a block of content as containing hard line breaks like this:
<<wikitext-example src:'"""
This is a line
and this is a new line
while this is yet another line
and this is the final one
apart from this one
"""
'>>
<<.tip 'Note: <strong>Hard Linebreaks in ~WikiText</strong> require an extra blank line after the trailing `"""` before the parser will return to [[block mode|Block Mode WikiText]].'>>.