Skip to content

Asciidoctor compatibility for part of readme #640

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

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Feb 22, 2019

Our README.asciidoc file has source listing containing asciidoc code
which is rare for our books. Asciidoctor was rendering it incorrectly
because of its "automatic comment detection" that it uses with callouts.
It saw

-- <1>

And through "that is a SQL comment preceeding a callout so I will eat
the --". While normally helpful, this is wrong when commenting on
asciidoc source. I work around this by writing

pass:[--] <1>

Which spits out the desired -- followed by a callout. To get that
working I had to poke the language declaration line some, especially
because AsciiDoc doesn't support the simpler Asciidoctor syntax for
enabling macros inside of listings.

This another thing that our html_diff based integration tests caught.

Our README.asciidoc file has source listing containing asciidoc code
which is rare for our books. Asciidoctor was rendering it incorrectly
because of its "automatic comment detection" that it uses with callouts.
It saw
```
-- <1>
```

And through "that is a SQL comment preceeding a callout so I will eat
the `--`". While *normally* helpful, this is wrong when commenting on
asciidoc source. I work around this by writing
```
pass:[--] <1>
```

Which spits out the desired `--` followed by a callout. To get that
working I had to poke the language declaration line some, especially
because AsciiDoc doesn't support the simpler Asciidoctor syntax for
enabling macros inside of listings.

This another thing that our `html_diff` based integration tests caught.
@nik9000 nik9000 requested review from a user and ddillinger February 22, 2019 23:03
@nik9000 nik9000 merged commit 84dbfb8 into elastic:master Feb 25, 2019
@nik9000
Copy link
Member Author

nik9000 commented Feb 25, 2019

Thanks for reviewing @ddillinger!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants