jgm / jgm/commonmark-hs

Improve architecture for FormattingSpecs

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
145
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Instead of a list of [FormattingSpec], let's have a FormattingSpecMap.
Define Monoid for this so that if you have two formatting specs for the same character, one a single-matcher and the other a double-matcher, the right thing happens.
See #87 for motivation.
Currently we build the FormattingSpecMap properly in Inlines, but it might be more efficient just to make this the data structure defined in the syntax.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.