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

Implement attribute plugin #3

Open
hagenburger opened this issue Jul 1, 2018 · 0 comments
Open

Implement attribute plugin #3

hagenburger opened this issue Jul 1, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers RGSoC This is a task for the Rails Girls Summer of Code DV Team
Milestone

Comments

@hagenburger
Copy link
Owner

hagenburger commented Jul 1, 2018

New feature

Either an element or a code block should be able to update an HTML attribute.

Specifications

The following combinations should be possible:

  • [attribute=value]attribute="value"
  • [attribute="value"] quotation marks must be stripped → attribute="value"
  • [attribute='value'] quotation marks must be stripped → attribute="value"
  • [attribute='[value]'] quotation marks must be stripped → attribute="[value]"
  • [attribute] only the attribute name should be set → attribute

Example usage

``` html [data-xyz=123]
<p>Example</p>
```
# Headline <?: [title="Headline title"] ?>

Help

In case some hints are needed, here is an example which could be checked against.

@hagenburger hagenburger added enhancement New feature or request good first issue Good for newcomers RGSoC This is a task for the Rails Girls Summer of Code DV Team labels Jul 1, 2018
@artnerdnet artnerdnet assigned artnerdnet and dianavile and unassigned artnerdnet Aug 2, 2018
@hagenburger hagenburger added this to the v1.0.0 milestone Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers RGSoC This is a task for the Rails Girls Summer of Code DV Team
Projects
None yet
Development

No branches or pull requests

3 participants