commonmark-hs style attributes?

Open
#105 0 comments 4 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start by reading Marko's parser extension points and comparing them with the linked commonmark-hs attributes extension and its inline and block examples. The issue names no Marko files or tests; done would mean supporting attributes such as classes and IDs on inline and block elements with output matching the stated examples.

Written by the indexing model from the issue text.

Description

The commonmark-hs library used by pandoc has a very nice attributes extension that allows attributes to be attached to any inline or block elements, e.g:

{.test}
* foo
* bar

attaches the attribute class=test to the list and *test*{#ident} results in <em id="ident">hi</em>.

How difficult would it be to implement the same for Marko?

Dominant language
Python
Stars
470
Forks
72
Avg merge
1d 18h
Merged PRs (30d)
34

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from frostming/marko

All issues in frostming/marko

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.