asciidoctor/asciidoctor-intellij-plugin

Format table cells

开放

#306 创建于 2019年7月30日

 (3 条评论) (0 个反应) (0 位负责人)Java (155 个派生)auto 404
enhancementhelp wanted

仓库指标

星标
 (392 个星标)
PR 合并指标
 (平均合并 4天 11小时) (30 天内合并 3 个 PR)

描述

Asciidoctor supports formatting of single cells. See Asciidoctor User Manual, section cell formatting.

It would be nice to have a context menu to format the current cell. Partial support for the options is fine as long as existing elements are unchanged.

To support this the lexer/parser would need to learn how to treat tables.

[cols="3"]
|===
^|Prefix the `{vbar}` with `{caret}` to center content horizontally
<|Prefix the `{vbar}` with `<` to align the content to the left horizontally
>|Prefix the `{vbar}` with `>` to align the content to the right horizontally

.^|Prefix the `{vbar}` with a `.` and `{caret}` to center the content in the cell vertically
.<|Prefix the `{vbar}` with a `.` and `<` to align the content to the top of the cell
.>|Prefix the `{vbar}` with a `.` and `>` to align the content to the bottom of the cell

3+^.^|This content spans three columns (`3{plus}`) and is centered horizontally (`{caret}`) and vertically (`.{caret}`) within the cell.

|===

贡献者指南