Paragraph annotations #2

Merged
miko merged 10 commits from feature/paragraph-annotations into development 3 years ago
miko commented 3 years ago
Owner

We would like to have the ability, to annotate paragraphs (and possibly other blocks as well) with additional attributes like class and id.

We like to use a syntax with braces ({}) for the annotation and the querySelector syntax (. means class, # means id etc.) from javascript for the specific attributes (although we might introduces our own syntax for data- attributes or whatnot).

Example

	This input should yield an annotated paragraph {.annotated, #foo}

Should result in

	<p class="annotated" id="foo">
		This input should yield an annotated paragraph
	</p>

Tasks

  • write unit tests
  • extend lexer
  • extend parser
  • write example in readme
  • make shure, this does not break other blocks
  • make shure, only {} blocks at the end of paragraphs are respected
We would like to have the ability, to annotate paragraphs *(and possibly other blocks as well)* with additional attributes like `class` and `id`. We like to use a syntax with braces *(`{}`)* for the annotation and the `querySelector` syntax *(`.` means class, `#` means id etc.)* from javascript for the specific attributes *(although we might introduces our own syntax for `data-` attributes or whatnot)*. **Example** ```markdown This input should yield an annotated paragraph {.annotated, #foo} ``` Should result in ```html <p class="annotated" id="foo"> This input should yield an annotated paragraph </p> ``` ### Tasks - [x] write unit tests - [x] extend lexer - [x] extend parser - [x] write example in readme - [x] make shure, this does not break other blocks - [x] make shure, only `{}` blocks at the end of paragraphs are respected
miko added 3 commits 3 years ago
miko added the
feature
label 3 years ago
miko self-assigned this 3 years ago
miko added 3 commits 3 years ago
miko added 2 commits 3 years ago
miko changed title from WIP: Paragraph annotations to Paragraph annotations 3 years ago
miko added 3 commits 3 years ago
miko merged commit e6ba398b14 into development 3 years ago
miko deleted branch feature/paragraph-annotations 3 years ago
The pull request has been merged as e6ba398b14.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: massivedynamic/Parkdown#2
Loading…
There is no content yet.