Doc

zio.blocks.docs.Doc
See theDoc companion class
object Doc

Attributes

Companion
class
Source
Doc.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Doc.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def isEmpty(block: Block): Boolean

Check if a block is empty.

Check if a block is empty.

Empty paragraphs, block quotes, and lists are considered empty.

Value parameters

block

The block to check

Attributes

Returns

true if the block is empty

Source
Doc.scala
def normalizeBlock(block: Block): Block

Normalize a single block to canonical form.

Normalize a single block to canonical form.

Value parameters

block

The block to normalize

Attributes

Returns

Normalized block

Source
Doc.scala

Normalize a chunk of blocks to canonical form.

Normalize a chunk of blocks to canonical form.

Value parameters

blocks

The blocks to normalize

Attributes

Returns

Normalized blocks with adjacent Text nodes merged and empty blocks removed

Source
Doc.scala
def normalizeInline(inline: Inline): Inline

Normalize a single inline to canonical form.

Normalize a single inline to canonical form.

Value parameters

inline

The inline to normalize

Attributes

Returns

Normalized inline

Source
Doc.scala

Normalize a chunk of inlines to canonical form.

Normalize a chunk of inlines to canonical form.

Adjacent Text nodes are merged, and empty Text nodes are removed.

Value parameters

inlines

The inlines to normalize

Attributes

Returns

Normalized inlines with adjacent Text nodes merged

Source
Doc.scala

Concrete fields

val empty: Doc

Attributes

Source
Doc.scala