Skip to main content

Content Keywords

Seven keywords for the substance of a document — text, callouts, quotations, citations, code, images, and links.

text:

Category: Content Arabic: نص:

General body text — the default block type.

Syntax

text: content | style-properties

Examples

The project is on track for a June delivery.
text: Total contract value: USD 24,000 | weight: bold
text: Please review by end of week | color: #dc2626 | italic: true

Notes

  • Supports all style properties
  • Supports inline formatting: *bold*, _italic_, ~strike~, ```code```, ^highlight^, `label`, {Label}
  • There is no note:/body:/paragraph: synonym — those parse as your own custom blocks. Use text: for body prose (or just write bare prose, below)

Bare prose — text: is optional

text: is the default block, so a line with no keyword at all is read as a text block. You can write a document as ordinary prose and only reach for keywords when a line needs a specific meaning:

title: Project Brief

The team shipped the beta on schedule. Adoption is ahead of plan, and
support volume is down 12% quarter over quarter.

task: Draft the Q3 roadmap | owner: Sarah | due: 2026-07-01

Both prose lines above parse to text: blocks. This keeps the source natural for readers who don't think in keywords (reviewers, executives, government clerks) while staying fully structured for code.

A bare line is re-emitted without the text: prefix — so natural source round-trips byte-for-byte and a sealed document keeps its hash. A line is treated as prose unless it would otherwise parse as another construct, in which case it stays explicit. A bare line is not used when the content:

  • looks like a keyword or custom block — word: followed by a space or end of line
  • starts a list (- or 1. ), a code fence (```), a divider (---), or a comment (//)
  • begins with a pipe | (a table row or pipe-property line)
  • is empty (a blank line is a paragraph break, not an empty paragraph)

To force a literal text: block even when bare would do, just write the keyword: text: ….


info:

Category: Content Arabic: تنبيه:

Callout block. Renders with a colored background and visual indicator. Choose the variant with the type: property — there is no separate warning:/danger:/tip:/success: keyword.

Syntax

info: content | type: variant

Properties

PropertyTypeDescription
typestringCallout variant: info (default), warning, danger, tip, success

Examples

info: This document uses the IntentText 1.0 format.
info: This contract expires in 14 days. Renewal required. | type: warning
info: Deleting this record is irreversible. | type: danger
info: Use dotit query to find all deadlines across your folder. | type: tip
info: Migration completed — 12,450 records transferred. | type: success

Callout variants — set with type:

Pick the callout variant with the type: property. There is no warning:/danger:/tip:/success: keyword — a bare warning: line is your own custom block, not a callout.

type:VariantVisual style
(default)infoBlue / neutral
warningwarningAmber / yellow
dangerdangerRed
tiptipGreen / blue
successsuccessGreen
info: This contract expires in 14 days. | type: warning
info: Deleting this record is irreversible. | type: danger

The parser produces { type: "info", properties: { type: "warning" } }.


quote:

Category: Content Arabic: اقتباس:

Block quotation with optional attribution.

Syntax

quote: content | by: source

Properties

PropertyTypeDescription
bystringAttribution text

Examples

quote: The best way to predict the future is to invent it. | by: Alan Kay
quote: All documents should be machine-readable from birth. | by: IntentText Manifesto

Category: Content (recommended convention)

cite: is a recommended custom keyword (see RECOMMENDED-KEYWORDS.md), not a reserved/canonical keyword — it was demoted from the canonical set in core 3.0.0. It parses as a typed custom block (type: "custom", keyword: "cite"), renders as a [cite] labeled block, and stays queryable by keyword=cite.

Bibliographic citation with author, date, and URL.

Syntax

cite: title | author: name | date: year | url: link

Properties

PropertyTypeDescription
authorstringAuthor name(s)
datestringPublication date or year
urlstringLink to the source

Examples

cite: The Pragmatic Programmer | author: Hunt, Thomas | date: 2019
cite: Structured Documents in Enterprise | author: Chen, Wei | date: 2025 | url: https://arxiv.org/example

code:

Category: Content Arabic: شيفرة:

Code block with optional language for syntax highlighting.

Syntax

Single-line code — wrap the value in triple backticks:

code: ```content``` | lang: language

Multi-line code — open with triple backticks, close on a separate line:

code: ```
line 1
line 2
``` | lang: language

Properties

PropertyTypeDescription
langstringProgramming language for highlighting

Examples

code: ```const doc = parseIntentText(source);``` | lang: typescript
code: ```
SELECT *
FROM users
WHERE active = true
``` | lang: sql

Inline code

To include code inline within any text block, use triple backticks:

Call the ```render()``` function to generate output.
Set ```NODE_ENV=production``` before deploying.

Notes

  • Properties (| lang: js, etc.) go after the closing ```, like any other pipe property
  • Plain code: content (without backtick wrapper) still works for simple one-liners

image:

Category: Content Arabic: صورة:

Inline image. No caption, no number — flows with surrounding text.

Syntax

image: alt text | src: url | caption: text

Properties

PropertyTypeRequiredDescription
srcstringyesImage URL or path
captionstringnoCaption rendered below the image

Examples

image: Company logo | src: ./images/logo.png | caption: Our logo
image: Architecture diagram | src: ./diagrams/arch.png

Notes

  • For numbered, captioned figures use x-writer: figure instead
  • image: is inline; x-writer: figure is a formal numbered element

Category: Content Arabic: رابط:

Hyperlink to an external resource.

Syntax

link: display text | to: target | title: tooltip

Properties

PropertyTypeRequiredDescription
tostringyesLink target (falls back to the content if absent)
titlestringnoTooltip text

Examples

link: IntentText docs | to: https://dotit.uts.qa
link: View the full contract | to: ./contracts/acme-2026.it | title: Acme Services Contract

Extension keywords

Editorial and document cross-reference blocks are available as extension keywords.

x-writer: — Editorial / Publishing

ExtensionPurpose
x-writer: bylineAuthor name and publication date
x-writer: figureNumbered, captioned figure
x-writer: captionFigure or table caption
x-writer: footnoteNumbered footnote with inline reference
x-writer: epigraphIntroductory quotation
x-writer: dedicationDocument dedication

x-doc: — Document Cross-References

ExtensionPurpose
x-doc: defTerm definition / glossary entry
x-doc: contactPerson or organization contact information
x-doc: deadlineDate-bound milestone
x-doc: refCross-document reference with relationship
x-doc: signlineSignature line for print documents

See the extensions overview in Keywords → for full syntax.