mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 09:10:48 +08:00
Shared: taskListItemFromAscii - handle empty task list case.
This commit is contained in:
@@ -672,8 +672,13 @@ taskListItemFromAscii :: Extensions -> [Block] -> [Block]
|
||||
taskListItemFromAscii = handleTaskListItem fromMd
|
||||
where
|
||||
fromMd (Str "[" : Space : Str "]" : Space : is) = Str "☐" : Space : is
|
||||
fromMd (Str "[ ]" : Space : is) = Str "☒" : Space : is
|
||||
fromMd (Str "[x]" : Space : is) = Str "☒" : Space : is
|
||||
fromMd (Str "[X]" : Space : is) = Str "☒" : Space : is
|
||||
fromMd [Str "[" , Space , Str "]"] = [Str "☐"]
|
||||
fromMd [Str "[ ]"] = [Str "☐"]
|
||||
fromMd [Str "[x]"] = [Str "☒"]
|
||||
fromMd [Str "[X]"] = [Str "☒"]
|
||||
fromMd is = is
|
||||
|
||||
-- | Convert a list item containing text starting with @U+2610 BALLOT BOX@
|
||||
|
||||
Reference in New Issue
Block a user