diff --git a/one.el/docs/docs.org b/one.el/docs/docs.org index 8114f9a..407ef93 100644 --- a/one.el/docs/docs.org +++ b/one.el/docs/docs.org @@ -1112,8 +1112,7 @@ The org elements that are not supported are the following: ~export-snippet~, ~footnote-reference~, ~horizontal-rule~, ~inline-src-block~, ~inlinetask~, ~keyword~, ~latex-environment~, ~latex-fragment~, ~line-break~, ~node-property~, ~planning~, ~property-drawer~, ~radio-target~, ~special-block~, -~statistics-cookie~, ~table~, ~table-cell~, ~table-row~, ~target~, ~timestamp~, -~verse-block~. +~statistics-cookie~, ~target~, ~timestamp~, ~verse-block~. Note that "not supported" means they are not rendered by default by ~one.el~ but we can still use them or even extend ~one-ox~ org export @@ -1124,7 +1123,6 @@ Why doesn't ~one.el~ support all org elements? 1. I don't need those org elements to write my technical blogs: - I don't do math. No support for Latex, - - I don't use table. No support for tables, - etc. 2. ~one-ox~ org backend is used only by the default render functions, so @@ -1788,3 +1786,46 @@ and is rendered like this: 1. first, 2. second, 3. third. + +* one-ox | table +:PROPERTIES: +:ONE: one-default-doc +:CUSTOM_ID: /docs/one-ox-table/ +:END: + +Tables with header rows are supported. + +The following org snippet: + +#+BEGIN_SRC org +| Name | Age | City | +|-------+-----+----------| +| Alice | 30 | New York | +| Bob | 25 | London | +#+END_SRC + +is exported by ~one-ox~ as follow + +#+BEGIN_SRC html +
| Name | +Age | +City | +
|---|---|---|
| Alice | +30 | +New York | +
| Bob | +25 | +London | +