Skip to content

Paragraphs & Line Breaks

Kx Markdown preserves the structure of text inside a context block.

Separate paragraphs with a blank line.

[context]
This is the first paragraph.
This is the second paragraph.
This is the third paragraph.
[/context]

Each paragraph is displayed with spacing between it and the next paragraph.

A single line break does not start a new paragraph.

Instead, Kx Markdown preserves it as a line break within the current paragraph.

[context]
GREETING THE INSTRUCTOR
Greet the instructor formally.
Ask how he is doing formally.
Respond naturally if he asks how you are doing.
[/context]

This is useful when context contains a short sequence of related instructions.

You can combine both forms:

[context]
GREETING THE INSTRUCTOR
Greet the instructor formally.
Ask how he is doing formally.
GREETING CLASSMATES
Greet classmates informally.
Ask how they are doing informally.
[/context]

The blank line separates the two groups into paragraphs. The individual lines within each group remain together.