Skip to content

Implement the mathinline, mathblock and mathblock-ref Confluence bridge Macros #184

@raphj

Description

@raphj

mathinline allows embedding an inline math expression written in LaTeX. Same for mathblock, but with a display style math expression. mathblock-ref allows making a reference to a mathblock expression.

mathinline has a body parameter which contains the URL-Encoded math expression prefixed with "-uriencoded--" . mathblock has the expression in its macro content. It has an alignment parameter that can be set to left, right or center. The left value puts the number of the equation on the left side of the expression instead of the default right alignment that puts it on the right. It also has an anchor parameter to set a label that can be referenced later with the mathblock-ref macro, which also has an anchor parameter: the anchor to target.

After an hour of looking into implementing the alignment parameter, I believe there's no easy and clean way to implement it, or I haven't found some, so I gave up to avoid spending time on a hack that may not be that useful. This can be implemented later if there's actual demand on it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions