Skip to content

Conversation

@devslash-paul
Copy link

  • Adds the ability for IdGenerator to be passed in prefixes and suffixes
    that will ensure to be added in-front/after every id. This will
    allow users to 'namespace' their generated ids to a certain pool.

* Adds the ability for IdGenerator to be passed in prefixes and suffixes
that will ensure to be added in-front/after every id. This will
allow users to 'namespace' their generated ids to a certain pool.
.build();
}

public static HeadingIdAttributeProvider create() {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure i should remove this create method. This isn't part of the public API, and will be unused if using the public API

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, feel free to remove it 👍.

Copy link
Collaborator

@robinst robinst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just two minor things to fix and then we can merge this.

return create(builder());
}

public static Extension create(Builder builder) {
Copy link
Collaborator

@robinst robinst Oct 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not need to be public. Instead, just pass the builder to the private constructor. See what we do in HtmlRenderer.

.build();
}

public static HeadingIdAttributeProvider create() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, feel free to remove it 👍.

@robinst robinst merged commit 8766fa4 into commonmark:master Oct 5, 2016
@robinst
Copy link
Collaborator

robinst commented Oct 5, 2016

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.

3 participants