Seonbi 0.3.0
Released on November 18, 2021.
-
Since this version, it requires GHC 8.8.* at least, and supports GHC 9.0.* at most.
-
Now supports several content types besides HTML/XHTML. The below list shows all supported content types: [#18]
text/html
(previously non-XHTML mode)application/xhtml+xml
(previously XHTML mode)text/plain
(added)text/markdown
(added)
The below Haskell APIs changed:
- Added
Text.Seonbi.ContentTypes
module. - Added
contentType
field forConfiguration m a
. - Removed
xhtml
field forConfiguration m a
in favor of newcontentType
field for the same type.
The below CLI options changed:
- Added
-t
/--content-type
option with the default valuetext/html
. - Removed Removed
-x
/--xhtml
option in favor of new-t
/--content-type
option. In order to use XHTML mode, give it-t application/xhtml+xml
option.
The below HTTP APIs changed:
- Added a mandatory field
"content"
to requests. - Deprecated the
"sourceHtml"
field of requests in favor of the new"content"
field. - Added an optional field
"contentType"
with the default value"text/html"
to requests. - Deprecated the
"xhtml"
field of requests in favor of the new"contentType"
field. The legacy field will be gone in the next minor release. In order to use XHTML mode, configure"contentType"
field with"application/xhtml+xml"
. - Added
"content"
field to responses. - Deprecated the
"resultHtml"
field of responses in favor of the new"content"
field. The legacy field is not provided for non-HTML types, and will be gone in the next minor release. - Added
"contentType"
field to responses. - Added
"warnings"
field to responses.
-
Added
Text.Seonbi.Html.Lang
module. -
Some transformations inappropriate for non-Korean contents are no more applied to elements written in other languages than Korean. The below functions respect elements
lang
attributes: [#10]Text.Seonbi.Hanja.phoneticizeHanja
Text.Seonbi.Punctuation.normalizeStops
-
Removed several functions from
Text.Seonbi.Trie
module:toListBy
lookupBy
submap
match
matches
alterBy
adjust
delete
mapBy
filterMap
-
Text.Seonbi.Trie.Trie
type is not an instance of the following typeclasses anymore:Generic a => Generic (Trie a)
Binary a => Binary (Trie a)
Generic1 Trie
type Rep (Trie a)
type Rep1 Trie
-
Added
Text.Seonbi.Html.Printer.printText
function. -
Added
Text.Seonbi.Html.Tag.headingLevel
function. -
Added
Text.Seonbi.Html.Tag.headingTag
function. -
Added
Text.Seonbi.Html.Tag.headingTag'
function. -
Added
Text.Seonbi.Html.TagStack.last
function.