No description
Find a file
2022-04-07 20:12:48 -03:00
.github/workflows Fix in github actions for releasing 2022-04-02 02:25:16 -03:00
images More examples and thanks 2022-04-01 13:07:34 -03:00
.editorconfig Rendering a table by asciidoc (hard coded) 2022-04-01 01:28:33 -03:00
.eslintignore Initial commit 2022-03-31 16:27:36 -03:00
.eslintrc Initial commit 2022-03-31 16:27:36 -03:00
.gitignore Initial commit 2022-03-31 16:27:36 -03:00
.npmrc Initial commit 2022-03-31 16:27:36 -03:00
CHANGELOG.md Better changelog 2022-04-05 15:52:58 -03:00
esbuild.config.mjs Initial commit 2022-03-31 16:27:36 -03:00
main.ts Replace innerHTML by sanitizeHTMLToDom 2022-04-05 15:40:04 -03:00
manifest.json Release 1.0.2 2022-04-05 15:43:14 -03:00
package-lock.json Better import of @asciidoctor/core instead require 2022-04-05 15:35:28 -03:00
package.json Release 1.0.2 2022-04-05 15:43:14 -03:00
README.adoc Better wrapping in source code 2022-04-04 20:10:26 -03:00
README.md Make example images working in Obsidian 2022-04-07 20:12:48 -03:00
styles.css First functional version using asciidoctor.js 2022-04-01 09:55:13 -03:00
tsconfig.json Initial commit 2022-03-31 16:27:36 -03:00
version-bump.mjs Initial commit 2022-03-31 16:27:36 -03:00
versions.json Release 1.0.2 2022-04-05 15:43:14 -03:00

Obsidian AsciiDoc Blocks Plugin

This is a plugin to render AsciiDoc blocks in Obsidian, initially focused on tables. 'Cause markdown tables are so limited!

Examples

Headerless table (without grid and frames)

Markdown

```asciidoc-table
[frame="none", grid="none", cols="^3,^1,^2"]
|===
| 2 × 1 | = | 2
| 2 × 2 | = | 4
| 2 × 3 | = | 6
|===
```

Result

CSV Table

Markdown

```asciidoc-table
[%header, format=csv]
|===
Artist, Track, Genre
Baauer, Harlem Shake, Hip Hop
The Lumineers, Ho Hey, Folk Rock
|===
```

Span lines and columns

Markdown

```asciidoc-table
|===
| Column 1 | Column 2 | Column 3

3+| colspan="3" - full line

.2+| rowspan="2" - two lines
| Line 2 - Column 2
| Line 2 - Column 3
| Line 3 - Column 2
| Line 3 - Column 3

| Line 4 - Column 1
2.2+| rowspan="2" colspan="2" - two lines and two columns
| Line 5 - Column 1
|===
```

For more information about AsciiDoc Tables.

IMPORTANT

At the moment any AsciiDoc feature might work, but there isn't any warranty and support! I hope in the future I could support other features officially!

Maybe I'll restrain asciidoc-table for only support tables and create another unsupported block: asciidoc-raw.

Thanks

  • The first inspiration (and some code) came from Obsidian Admonition, thanks @valentine195;
  • So many thanks, @francbreno for introducing me to Obsidian and spending some time discussing the idea of this plugin.