All notable changes to Luce will be documented in this file.
Array(Line?)
to Array(Line)
for most BlockSyntax#parse_child_lines
overrides.
nil
in to their arrays; this change mainly removes the need to check for .nil?
.
If you were inserting nil
in to these arrays, then you'll need to make some changes, but otherwise this shouldn't
break anything.src/luce/util.cr
have been deprecated. They will be removed in version 1.0.
Array#insert_all
, String#replace_all_mapped
, String#split_map_join
, String#indentation
, String#dedent
,
String#prepend_space
, String#to_lines
, String#last
, Regex#all_matches
, Regex::MatchData#match
.BlockSyntax#parse_lines
.HTMLBlockSyntax
.AutolinkExtensionSyntax
.AutolinkExtensionSyntax
(#3 - thanks solvin!)bin/luce.cr
getter
and property
which were of
type Bool
to getter?
and property?
respectively.close()
of DelimiterSyntax
and LinkSyntax
returns multiple nodes instead of single one.TagSyntax
,
Luce::INDICATOR_FOR_CHECKED_CHECK_BOX
, and
Luce::INDICATOR_FOR_UNCHECKED_CHECK_BOX
.BlockHTMLSyntax
, BlockTagBlockHTMLSyntax
,
LongBlockHTMLSyntax
, and OtherTagBlockHTMLSyntax
.line
properties of type String
to Line
.lines
properties of type Array(String)
to
Array(Line)
.HTMLBlockSyntax
to parse HTML blocks.enable_tag_filter
option to HTMLRenderer
to enable GFM
tagfilter
extension.DecodeHtmlSyntax
to decode HTML entity and numeric
character references.EscapeHTMLSyntax
to encode ("
), (<
), (>
) and (&
).SoftLineBreakSyntax
to remove the single space before the
line ending.case_sensitive
to TextSyntax
.Document#parse(text : String)
.Document#parse_line_list(text : Array(Line))
.Line
.parent_syntax
for BlockParser#parse_lines
,
which can be used when parsing nested blocks.disable_setext_heading
for BlockParser#parse_lines
,
which is used to disable the SetextHeaderSyntax
.previous_syntax
to BlockParser
.HeaderWithIdSyntax
, do not generate heading IDs for headings
with no content.TagSyntax
is deprecated.StrikethroughSyntax
now extends
DelimiterSyntax
instead of TagSyntax
.LinkSyntax
now extends DelimiterSyntax
instead of TagSyntax
.DelimiterSyntax
.GITHUB_FLAVOURED
and GITHUB_WEB
extension sets.#ff0000
color swatches.EmphasisSyntax.underscore
and
EmphasisSyntax.asterisk
.:cricket:
and :beetle:
. There are alternate emoji
:cricket_game:
and :lady_beetle:
which can be used to access the previous
emoji. update_github_emoji.cr
now pulls all emoji info directly from
GitHub API and as a result we now support the entire GitHub emoji set
(excluding the 19 custom GitHub specific emoji which have no Unicode support).parse_inline
's parameters from
String?
to String
.with_default_inline_syntaxes : Bool
and
with_default_block_syntaxes : Bool
parameters to Luce.to_html
and Luce::Document
to support case of specifying exactly the list
of desired syntaxes.The initial tagged release of Luce. This version has compatibility with the dart-lang/markdown package version 4.0.1. You can: