markup/goldmark: Add attributes support for blocks (tables etc.)
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 7 Feb 2021 17:08:46 +0000 (18:08 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 8 Feb 2021 18:52:55 +0000 (19:52 +0100)
commit2681633db8d340d2dc59cf801419874d572fc704
tree74451c9bc4249a387aacf8071127d880cfea07db
parent1b2472825664763c0b88807b0d193e73553423ec
markup/goldmark: Add attributes support for blocks (tables etc.)

E.g.:

```
> foo
> bar
{.myclass}
```

There are some current limitations: For tables you can currently only apply it to the full table, and for lists the ul/ol-nodes only, e.g.:

```
* Fruit
  * Apple
  * Orange
  * Banana
  {.fruits}
* Dairy
  * Milk
  * Cheese
  {.dairies}
{.list}
```

Fixes #7548
docs/content/en/getting-started/configuration-markup.md
docs/data/docs.json
markup/goldmark/convert.go
markup/goldmark/convert_test.go
markup/goldmark/goldmark_config/config.go
markup/goldmark/internal/extensions/attributes/attributes.go [new file with mode: 0644]
markup/markup_config/config.go
markup/markup_config/config_test.go