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

Optionally prefix name with a namespace string #4

Open
leff opened this issue Jun 24, 2015 · 0 comments
Open

Optionally prefix name with a namespace string #4

leff opened this issue Jun 24, 2015 · 0 comments

Comments

@leff
Copy link
Owner

leff commented Jun 24, 2015

As we move to id attributes, we need to be able to ensure uniqueness across the whole page. On pages where the rendered markdown might be part of a larger document, we can't guarantee uniqueness through internal means alone. We can provide a way for users to ensure uniqueness by allowing them to prefix the generated name with a namespace string.

By default, the prefix will be an empty string.

Definition of Done:

  1. A prefix option is supported
    • if the option is not set, no change is made to the raw name slug
    • if the option is set, it is separated from the raw slug by a dash. Ie prefix-rawslug
  2. The feature is documented
    • It's use is encouraged, all examples have it set.
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

1 participant