-
Notifications
You must be signed in to change notification settings - Fork 335
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
Asciidoctor: Support added inline macro #548
Conversation
Adds support for the added inline macro which would normally be specified like this: ``` words added:[version] ``` But for compatibility with Elastic's asciidoc customizations we support specifying it like this as well: ``` words added[version] ``` Note that we'll want to build on this to add support for `coming` and `deprecated` as well.
expect(actual).to eq(expected.strip) | ||
end | ||
|
||
it "inline version is not invoked without the ::" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the PR description... does this match the behavior of asciidoc
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops! That should be without the :
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, in asciidoc the inline macro is invoked without the :
, but in asciidoctor it isn't. We "fix" the input to add the :
in the compat preprocessor. This is a "doesn't it work how I think it should" test more than anything.
Thanks for reviewing @ddillinger! |
Adds support for the added inline macro which would normally be specified like this: ``` words added:[version] ``` But for compatibility with Elastic's asciidoc customizations we support specifying it like this as well: ``` words added[version] ``` Note that we'll want to build on this to add support for `coming` and `deprecated` as well.
Adds support for the added inline macro which would normally be
specified like this:
But for compatibility with Elastic's asciidoc customizations we support
specifying it like this as well:
Note that we'll want to build on this to add support for
coming
anddeprecated
as well.