asciidoctor/asciidoctor-intellij-plugin

Format table cells

Aberta

#306 aberto em 30 de jul. de 2019

 (3 comentários) (0 reação) (0 responsável)Java (155 forks)auto 404
enhancementhelp wanted

Métricas do repositório

Stars
 (392 estrelas)
Métricas de merge de PR
 (Mesclagem média 4d 11h) (3 fundiu PRs em 30d)

Description

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.

|===

Guia do colaborador