-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Math): Add Math, MathFragment and MathBlock nodes
- Loading branch information
Showing
7 changed files
with
206 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
title: Math | ||
'@id': stencila:Math | ||
extends: Entity | ||
role: base | ||
status: unstable | ||
category: prose | ||
description: A mathematical variable or equation. | ||
$comment: | | ||
This is a base type for `MathFragment` and `MathBlock` and should not | ||
normally be instantiated. | ||
This type has a similar structure and purpose to `Code` which is a base type | ||
for `CodeFragment`, `CodeBlock` etc. | ||
properties: | ||
mathLanguage: | ||
'@id': schema:mathLanguage | ||
description: The language used for the equation e.g tex, mathml, asciimath. | ||
type: string | ||
default: 'tex' | ||
text: | ||
'@id': schema:text | ||
description: The text of the equation in the language. | ||
type: string | ||
required: | ||
- text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: MathBlock | ||
'@id': stencila:MathBlock | ||
extends: Math | ||
role: secondary | ||
status: unstable | ||
category: prose | ||
description: A block of math, e.g an equation, to be treated as block content. | ||
properties: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: MathFragment | ||
'@id': stencila:MathFragment | ||
extends: Math | ||
role: secondary | ||
status: unstable | ||
category: prose | ||
description: A fragment of math, e.g a variable name, to be treated as inline content. | ||
properties: {} |