diff options
| author | Shulhan <ms@kilabit.info> | 2023-05-28 20:55:38 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-05-28 20:55:38 +0700 |
| commit | 6f7bb3e07398c80e782dd46045ce020a45067095 (patch) | |
| tree | 0c950fe8801765a08bc3ce89fca767f2367a621d /document_parser.go | |
| parent | 4a6f5296b2c03e8c8ee681a31bc39822efeddffc (diff) | |
| download | asciidoctor-go-6f7bb3e07398c80e782dd46045ce020a45067095.tar.xz | |
all: add support for unordered list with '-'
The unordered list item with hyphen ('-') cause too much confusion and
inconsistency, nevertheless most of still use it.
Case one, given the following markup,
```
- Item 1
+
"A line
of quote"
-- Author
```
Is the "Author" the sub item in list or we are parsing author of quote
paragraph?
Case two, the writer want to write em dash (`—` in HTML Unicode) but
somehow the editor wrap it and start in new line.
As a reminder, the official documentation only recommend using hyphen for
simple list item [1].
[1] https://docs.asciidoctor.org/asciidoc/latest/lists/unordered/#basic-unordered-list
Diffstat (limited to 'document_parser.go')
| -rw-r--r-- | document_parser.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/document_parser.go b/document_parser.go index 3ccfa0f..db2dec1 100644 --- a/document_parser.go +++ b/document_parser.go @@ -841,8 +841,6 @@ func (docp *documentParser) parseListBlock() (el *element, line []byte) { lineKindEmpty, []int{ lineKindListContinue, - elKindListOrderedItem, - elKindListUnorderedItem, elKindListDescriptionItem, }) el.postParseParagraph(nil) |
