-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ececdb
commit a903482
Showing
20 changed files
with
563 additions
and
75 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
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,10 @@ | ||
import { ASTNode } from '../../../core/ast/ast-node'; | ||
import { Renderer } from '../../../core/rendering/renderer'; | ||
import { RenderingManager } from '../../../core/rendering/rendering-manager'; | ||
import { WooElementKind } from '../../../util/types/woo'; | ||
/** Renderer of the cite inner environment */ | ||
export declare class InnerEnvCiteRenderer implements Renderer { | ||
readonly kind: WooElementKind; | ||
readonly abstractVariant = "cite"; | ||
render(renderingManager: RenderingManager, astNode: ASTNode): Node; | ||
} |
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,16 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InnerEnvCiteRenderer = void 0; | ||
/** Renderer of the cite inner environment */ | ||
class InnerEnvCiteRenderer { | ||
constructor() { | ||
this.kind = 'InnerEnv'; | ||
this.abstractVariant = 'cite'; | ||
} | ||
render(renderingManager, astNode) { | ||
const cite = document.createElement('cite'); | ||
cite.append('[', renderingManager.render(...astNode.children), ']'); | ||
return cite; | ||
} | ||
} | ||
exports.InnerEnvCiteRenderer = InnerEnvCiteRenderer; |
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,10 @@ | ||
import { ASTNode } from '../../../core/ast/ast-node'; | ||
import { Renderer } from '../../../core/rendering/renderer'; | ||
import { RenderingManager } from '../../../core/rendering/rendering-manager'; | ||
import { WooElementKind } from '../../../util/types/woo'; | ||
/** Renderer of the eqref inner environment */ | ||
export declare class InnerEnvEqrefRenderer implements Renderer { | ||
readonly kind: WooElementKind; | ||
readonly abstractVariant = "eqref"; | ||
render(renderingManager: RenderingManager, astNode: ASTNode): Node; | ||
} |
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,14 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InnerEnvEqrefRenderer = void 0; | ||
/** Renderer of the eqref inner environment */ | ||
class InnerEnvEqrefRenderer { | ||
constructor() { | ||
this.kind = 'InnerEnv'; | ||
this.abstractVariant = 'eqref'; | ||
} | ||
render(renderingManager, astNode) { | ||
return renderingManager.render(...astNode.children); | ||
} | ||
} | ||
exports.InnerEnvEqrefRenderer = InnerEnvEqrefRenderer; |
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,10 @@ | ||
import { ASTNode } from '../../../core/ast/ast-node'; | ||
import { Renderer } from '../../../core/rendering/renderer'; | ||
import { RenderingManager } from '../../../core/rendering/rendering-manager'; | ||
import { WooElementKind } from '../../../util/types/woo'; | ||
/** Renderer of the footnote inner environment */ | ||
export declare class InnerEnvFootnoteRenderer implements Renderer { | ||
readonly kind: WooElementKind; | ||
readonly abstractVariant = "footnote"; | ||
render(renderingManager: RenderingManager, astNode: ASTNode): Node; | ||
} |
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,22 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InnerEnvFootnoteRenderer = void 0; | ||
/** Renderer of the footnote inner environment */ | ||
class InnerEnvFootnoteRenderer { | ||
constructor() { | ||
this.kind = 'InnerEnv'; | ||
this.abstractVariant = 'footnote'; | ||
} | ||
render(renderingManager, astNode) { | ||
const footnote = document.createElement('span'); | ||
footnote.classList.add('wootom-footnote'); | ||
const controls = document.createElement('span'); | ||
controls.classList.add('wootom-footnote-controls'); | ||
controls.addEventListener('click', () => footnote.classList.toggle('wootom-footnote-shown')); | ||
const content = document.createElement('span'); | ||
content.append(renderingManager.render(...astNode.children)); | ||
footnote.append(controls, content); | ||
return footnote; | ||
} | ||
} | ||
exports.InnerEnvFootnoteRenderer = InnerEnvFootnoteRenderer; |
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,10 @@ | ||
import { ASTNode } from '../../../core/ast/ast-node'; | ||
import { Renderer } from '../../../core/rendering/renderer'; | ||
import { RenderingManager } from '../../../core/rendering/rendering-manager'; | ||
import { WooElementKind } from '../../../util/types/woo'; | ||
/** Renderer of the reference inner environment */ | ||
export declare class InnerEnvReferenceRenderer implements Renderer { | ||
readonly kind: WooElementKind; | ||
readonly abstractVariant = "reference"; | ||
render(renderingManager: RenderingManager, astNode: ASTNode): Node; | ||
} |
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,14 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InnerEnvReferenceRenderer = void 0; | ||
/** Renderer of the reference inner environment */ | ||
class InnerEnvReferenceRenderer { | ||
constructor() { | ||
this.kind = 'InnerEnv'; | ||
this.abstractVariant = 'reference'; | ||
} | ||
render(renderingManager, astNode) { | ||
return renderingManager.render(...astNode.children); | ||
} | ||
} | ||
exports.InnerEnvReferenceRenderer = InnerEnvReferenceRenderer; |
Oops, something went wrong.