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

Asciidoctor: Support added inline macro #548

Merged
merged 4 commits into from
Jan 18, 2019

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jan 17, 2019

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:

```
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.
@nik9000 nik9000 mentioned this pull request Jan 17, 2019
expect(actual).to eq(expected.strip)
end

it "inline version is not invoked without the ::" do

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

@nik9000
Copy link
Member Author

nik9000 commented Jan 18, 2019

Thanks for reviewing @ddillinger!

@nik9000 nik9000 merged commit 044e33a into elastic:master Jan 18, 2019
bmorelli25 pushed a commit to bmorelli25/docs that referenced this pull request Feb 15, 2019
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.
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