asciidoctor / atom-language-asciidoc

⚛ AsciiDoc language package for the Atom editor.
https://atom.io/packages/language-asciidoc
MIT License
42 stars 20 forks source link

Request for Table formatting/normalization #140

Closed sengopal closed 8 years ago

sengopal commented 8 years ago

Description

Enhancement Request

Apologies if this is not the correct repo for this request. Can we get table data formatting and normalization helping both authoring and readability of the adoc file. Reference: Previously used this for markdown http://markdowntable.com/ and seems there is one for atom as well - https://atom.io/packages/markdown-table-formatter

Screenshots

N/A

Syntax example

N/A

ldez commented 8 years ago

Thanks to your contribution.

The AsciiDoctor tables are more rich than Markdown tables, multiple syntax are possible, provide a formatting seems to me complex.

The grammar package provide the highlighting of text only.

We are currently thinking to an AsciiDoctor assistant/writer package.

Due to this I must decline your request, sorry.

mojavelinux commented 8 years ago

I agree this would work best as a separate package (maybe included down the line in the assistance package). However, I think it would be pretty tough to implement without messing up the table. It could work for simple tables, but for complex tables, it would almost have to do AsciiDoc to AsciiDoc conversion.

nicorikken commented 8 years ago

Then again, the Asciidoctor syntax includes attributes defining how a properly aligned table should look. Like multi span columns, text alignment. Would certainly be great, but indeed complex.

sengopal commented 8 years ago

Sure. Just thought it would be good addition. I was actually looking for something which formats the spacing of the columns evenly. However, it is complex with the column span and other formatting attributes.

Anyway thanks for replying 👍