Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toc::[] macro causes a warning and is converted to "true" #332

Closed
programandala-net opened this issue Apr 26, 2020 · 2 comments
Closed

toc::[] macro causes a warning and is converted to "true" #332

programandala-net opened this issue Apr 26, 2020 · 2 comments

Comments

@programandala-net
Copy link

Sometime ago i realized toc::[]causes "asciidoctor: WARNING: conversion missing in backend epub3 for toc" and text "true" is included in its position. I always use ifdef::[] to skip the toc::[] when the backend is EPUB, so there's no problem adding the TOC only to the proper target formats.

But the Asciidoctor warning that the TOC conversion is missing and the wrong output ("true") make
me think maybe there's a bug somewhere. Ignoring the toc::[] macro would seem more logical after the warning. Or just throwing an error instead of a warning.

test_01_toc_displays_true.adoc.zip

@slonopotamus
Copy link
Contributor

Thanks for providing example document. We already have a feature request for in-document TOC: #174. So, for current issue I'm going to fix that bogus "true" output (instead, nothing will be output in place of toc::[] though it'll still produce a warning), but TOC will remain unsupported and will later be implemented in #174.

@programandala-net
Copy link
Author

Thank you. I had already searched for TOC issues and had read the feature request #174, but this little problem was different.

@slonopotamus slonopotamus added this to the v1.5.0.alpha.16 milestone Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants