Anydocs Documents
Document Editor

Inline Styles

Understand the five inline text styles currently exposed by Anydocs.

Anydocs currently exposes five inline marks. They are for local emphasis only; if the structure or semantics change, switch to a block-level element instead.

Supported styles

The currently supported marks are `bold`, `italic`, `underline`, `strike`, and `code`. These can appear inside paragraph, heading, list, and similar block content.

When to use each one

Use `bold` for important keywords, `italic` for light emphasis or terminology cues, `underline` for limited reminders, `strike` for deprecated or no-longer-recommended content, and `code` for commands, parameter names, field names, paths, and short expressions.

When not to use inline styles

If an entire block needs emphasis, use a Callout. If you are quoting a source, use a Blockquote. If you need a full command or multi-line example, use Code or CodeGroup. If you need hierarchy, use headings or lists instead.

Minimum rule for AI authors

Do not treat inline marks as layout tools. Write the structure first, then add only the small amount of emphasis that helps comprehension. Heavy stacked emphasis usually makes both the reader and machine-readable outputs worse.

Avoid style stacking: If one line contains too much bold, underline, and inline code at the same time, the structure is probably doing the wrong job. Fix the sentence or block structure first, then decide whether the mark is still needed.