A Markdown shard for the Crystal programming language
修訂 | 4fc783d3a8d1c558a0cdf158d25c2366270a57d7 (tree) |
---|---|
時間 | 2023-05-23 09:13:56 |
作者 | supercell <stigma@disr...> |
Commiter | supercell |
Version 0.4.0
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | All notable changes to Luce will be documented in this file. |
4 | 4 | |
5 | -## [Unreleased] | |
5 | +## [0.4.0] - 2023-05-23 | |
6 | 6 | |
7 | 7 | * **Breaking change**: Changed `getter` and `property` which were of |
8 | 8 | type `Bool` to `getter?` and `property?` respectively. |
@@ -86,7 +86,7 @@ with the dart-lang/markdown package version 4.0.1. You can: | ||
86 | 86 | - Define custom Extension Sets |
87 | 87 | - Use any Crystal version from 1.0.0 to 1.7.2 |
88 | 88 | |
89 | -[Unreleased]: https://codeberg.org/supercell/luce/compare/v0.3.0...HEAD | |
89 | +[0.4.0]: https://codeberg.org/supercell/luce/compare/v0.3.0...v0.4.0 | |
90 | 90 | [0.3.0]: https://codeberg.org/supercell/luce/compare/v0.2.0...v0.3.0 |
91 | 91 | [0.2.0]: https://codeberg.org/supercell/luce/compare/v0.1.0...v0.2.0 |
92 | 92 | [0.1.0]: https://codeberg.org/supercell/luce/releases/tag/v0.1.0 |
@@ -13,7 +13,7 @@ Luce is a port of the [Dart markdown package]. | ||
13 | 13 | dependencies: |
14 | 14 | luce: |
15 | 15 | git: https://codeberg.org/supercell/luce |
16 | - version: ~> 0.3.0 | |
16 | + version: ~> 0.4.0 | |
17 | 17 | ``` |
18 | 18 | |
19 | 19 | 2. Run `shards install` |
@@ -149,9 +149,9 @@ resulting HTML. | ||
149 | 149 | |
150 | 150 | ## Development |
151 | 151 | |
152 | -Currently matches version 6.0.1 of the [Dart markdown package]. Work | |
152 | +Currently matches version 7.0.2 of the [Dart markdown package]. Work | |
153 | 153 | continues on updating to match newer releases. That said, until we've |
154 | -matched the latest version of Dart markdown (7.0.1 as of writing), | |
154 | +matched the latest version of Dart markdown (7.1.0 as of writing), | |
155 | 155 | `Luce` will stay pre-1.0, since there will be some breaking changes. |
156 | 156 | |
157 | 157 | ## Contributing |
@@ -1,5 +1,5 @@ | ||
1 | 1 | name: luce |
2 | -version: '0.4.0-dev' | |
2 | +version: '0.4.0' | |
3 | 3 | crystal: '>= 1.0.0' |
4 | 4 | |
5 | 5 | authors: |
@@ -87,7 +87,7 @@ require "./extern/dart_uri" | ||
87 | 87 | # - Creating a new `ExtensionSet` from one of the existing flavors adding your syntaxes |
88 | 88 | # - Passing your syntaxes to `Document` or `Luce.to_html` as parameters. |
89 | 89 | module Luce |
90 | - VERSION = "0.4.0-dev" | |
90 | + VERSION = "0.4.0" | |
91 | 91 | |
92 | 92 | # Converts the given string of Markdown to HTML |
93 | 93 | def self.to_html( |
@@ -9,9 +9,6 @@ require "option_parser" | ||
9 | 9 | |
10 | 10 | require "../src/luce/legacy_emojis" |
11 | 11 | |
12 | -# Regular expression to match GitHub emoji API output filenames. | |
13 | -GITHUB_EMOJI_API_PATTERN = Regex.new(%{^[ \t]+"(.*?)".*unicode/([A-Fa-f0-9-]+).png}) | |
14 | - | |
15 | 12 | # Regular expression to parse unicode from GitHub emoji API output filenames. |
16 | 13 | GITHUB_EMOJI_UNICODE_FROM_FILENAME_PATTERN = Regex.new(%{.*unicode/([A-Fa-f0-9-]+).png}) |
17 | 14 |