Skip to content

smithandrobot/Structured-Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structured Text

Structured Text provides a simple, extensible and transportable format for content.

{
	"blocks": {
		"type": ".paragraph",
		"text": "Hello world!",
		"annotations": [
			{
				"type": ".bold",
				"start": 6,
				"length": 5
			}
		]
	}
}

Terminology

Block: Blocks are the main grouping elements of content, paragraphs as an example. Blocks may have associated child blocks and attributes. Blocks may also optionally provide a directly translated plain text representation of their content. This must only be available when the plain text content is directly related, the content of a paragraph for example. The text should not be provided for a table as the plain text representation is not directly known.

Annotations: Annotations are inline characteristics on a block.

Attributes: Attributes provide additional related information about a block or annotation.

Scope: A scope provides a default prefix for the type of all children blocks. A child block may opt into using the scope by prefixing its type with a period.

Available Elements

The bocks available in the com.structured_text.core namespace are:

  • paragraph
  • list
  • container (div?)
  • image
  • table

The annotations available in the com.structured_text.core namespace are:

  • link
  • bold
  • strong
  • italic
  • emphasis
  • image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages