atom-asciidoc-preview
atom-asciidoc-preview copied to clipboard
Render crashes when applying tabsize attribute to a tab-formatted text
Render crashes when applying tabsize
attribute to a tab-formatted text
When you have a tab-formatted text and you want to overwrite the default 8 spaces per tab
there are two ways to do it:
- Whole text atribute: By setting
:tabsize: 4
- Per block atribute: By setting
[tabsize=4]
The issue is that when any of these methods are applied, te render crashes and shows a
- Atom version: 1.24.0
- OS: KDE Neon 5.12
-
asciidoc-preview
version: 2.10.4 -
language-asciidoc
version: 1.11.0
Screenshots
Steps to reproduce
Try to preview this file: ./test.adoc
= Title
:tabsize: 4
----
{
"tabbed": {
}
}
----
Important note
This same file works well with other Asciidoc libs like the bundled in asciidoctor/docker-asciidoctor so you can try yourself by just typing:
docker run --rm -v $(pwd):/documents/ asciidoctor/docker-asciidoctor asciidoctor index.txt
Most likely related to https://github.com/asciidoctor/asciidoctor.js/issues/173