Debian Codegraph @

Changes

raw
1 0.40 2021-03-21
2
3 - Add support for email auto-links without "mailto:", so "<[email protected]>"
4 will now be treated as a "mailto:" link. Implemented by Konrad Bucheli. GH
5 #28.
6
7
8 0.39 2021-02-12
9
10 - Add support for strikethrough (~~) in the GitHub dialect. Implemented by
11 Konrad Bucheli. Fixes GH #16. GH #27.
12
13
14 0.38 2020-11-07
15
16 - Fix a bug where a line starting with a tab in the middle of a paragraph
17 caused the Standard dialect parser to error out. Reported by André
18 Walker. GH #25.
19
20
21 0.37 2020-07-03
22
23 - The markdent-html CLI script now accepts `--file -` for reading Markdown
24 from stdin. Based on a patch by Jonas Smedegaard. GH #23.
25
26
27 0.36 2019-11-26
28
29 - Fix somewhat broken HTML parsing. The change in 0.35 caused the parser to
30 die if it encountered an empty attribute like in `<button
31 ... disabled>`. This broke Markdown::Pod. Fixes
32 https://github.com/keedi/Markdown-Pod/issues/13. Reported by Slaven Rezić.
33
34
35 0.35 2019-11-09
36
37 - Fix entirely broken HTML attribute parsing. Any attribute with a space in
38 its value like `alt="Some text"` would cause the parser to go
39 haywire. Reported by Shlomi Fish. GH #21.
40
41
42 0.34 2019-03-30
43
44 - When Markdent processes raw HTML in Markdown text it will now emit that HTML
45 with its attributes in sorted order, so `<a rel="thing" href="foo">` becomes
46 `<a href="foo" rel="thing">`. Previously the attributes were emitted in a
47 random order. Sorting them ensures that the same source text always renders
48 the same way. Patch by Shlomi Fish. GH #19.
49
50
51 0.33 2019-01-18
52
53 - Replace use of Digest::SHA1 with Digest::SHA. The latter is core since 5.9.3
54 so it's one less dependency. Requested by Jonas Smedegaard. GH #17.
55
56
57 0.32 2018-10-20
58
59 - Added more documentation to Markdent.pm containing pointers to various
60 classes in the distribution. Also added POD documentation to the
61 markdent-html script that ships with this distro.
62
63
64 0.31 2018-06-09
65
66 - Moved from rt.cpan.org to GitHub issues.
67
68
69 0.30 2018-02-18
70
71 - Require Perl 5.10. Perl 5.8.x has very weird parsing failures on valid Perl
72 code in this distribution.
73
74 - Specify required versions of Params::ValidationCompiler and Test2::V0. This
75 module does not work with just any versions of those two. Fixed by Denis
76 Ibaev. GitHub #11.
77
78
79 0.29 2017-12-31
80
81 - Make the GitHub dialect look for fenced code blocks before other types of
82 markup. Otherwise this could parse the _inside_ of a fenced code block as
83 containing some sort of block-level markup like a two-line list. Reported by
84 Frew Schmidt. GitHub #10.
85
86
87 0.28 2017-11-21
88
89 - Require Moose 2.1802 for full compatibility with Specio.
90
91
92 0.27 2017-11-09
93
94 - Replaced MooseX::Params::Validate and MooseX::Types with
95 Params::ValidationCompiler and Specio. There are also some other internals
96 changes to improve performance in this release. Prompted by fREW
97 Schmidt. GitHub #9.
98
99
100 0.26 2015-05-31
101
102 - Fixes for Unicode characters when generating HTML. The Markdent::Simple::*
103 classes now make sure that the scalar it returns containing HTML contains
104 characters, not bytes. The Markdent::Handler::HTMLStream::* classes no
105 longer entitize non-ASCII characters. Only control characters and HTML
106 reserved characters (< > & ") are encoded as HTML entities. The problems
107 with Unicode handling were reported by Polina Shubha. GitHub PR #8.
108
109 - HTML blocks containing Unicode characters could cause the parser to die or
110 warn. Reported by Polina Shubha. GitHub PR #8.
111
112 - A change in 0.25 broke the ability to have a dialect with just a block
113 parser or span parser rather than both. Reported by Polina Shubina. GitHub
114 issue #7.
115
116 - The parsing of HTML entities was too greedy, so that something like
117 "&lt;word&gt;" would be parsed a single entity, "lt;word&gt", which is
118 clearly wrong. Fixed by Polina Shubina. GitHub PR #3.
119
120 - Accept Pandoc (1.12.3)-generated GitHub-format Markdown document style for
121 fenced code blocks - "``` {.Perl}". Implemented by Andrew Speer. GitHub PR
122 #4.
123
124
125 0.25 2015-01-04
126
127 - HTML output now uses the HTML5 doctype. In addition, table cell alignment is
128 set using a style tag in generated HTML, rather than the deprecated-in-HTML5
129 "align" attribute.
130
131 - The Markdent::Handler::HTMLStream::Document and Markdent::Simple::Document
132 classes now accept optional charset and language parameters.
133
134 - The HTML output for table cells was broken. Cells always ended with </th>
135 even for body cells. Reported by Polina Shubina. GitHub PR #2.
136
137 - Replaced Class::Load with Module::Runtime.
138
139
140 0.24 2014-01-25
141
142 - Shut up enum warnings from the latest Moose (2.1200). Patch by Zoffix. RT
143 #92274.
144
145
146 0.23 2013-12-13
147
148 - Added support for drunken (42, 5, 3) and lazy (1, 1, 1) ordered lists, per
149 the Markdown spec -
150 http://daringfireball.net/projects/markdown/syntax#list. Based on tests and
151 patch from Jason McIntosh.
152
153
154 0.22 2012-07-22
155
156 * All dialects except the Standard dialect are now roles. This makes it
157 possible to create a parser that parses multiple dialects. It's possible for
158 dialects to have conflicting parsing rules, in which case the results are
159 unpredictable.
160
161 This is a backwards incompatible change, but should not break most code,
162 unless you have implemented your own dialect, or you were explicitly setting
163 a block or span parser class to something like
164
165 block_parser_class => 'Markdent::Dialect::Theory::BlockParser'
166
167 But there was really no good reason to do this.
168
169 - The Standard dialect block/span parser classes are now named
170 Markdent::Parser::BlockParser and ::SpanParser.
171
172 - The use of a "dialect" as a named parameter has been replaced by
173 "dialects". The "dialects" parameter can be either a string or an array ref
174 of strings. However, the "dialect" parameter is still accepted for backwards
175 compatibility. This may be removed in the future.
176
177 - The Standard dialect now parses two spaces at the end of a line as a line
178 break. There is a new Markdent::Event::LineBreak class to go with this.
179
180 - Improve the bin/markdent-html script. It now has a --help option. You can
181 pass it Markdown text via the CLI --text option, rather than only via a
182 --file.
183
184 - Implemented most of GitHub-flavored Markdown as a dialect.
185
186
187 0.21 2012-06-22
188
189 - The StartListItem event now has a bullet attribute. This contains the text
190 of the bullet, something like "*" or "1.". Requested by Steven Haryanto. RT
191 #77893.
192
193
194 0.20 2012-05-18
195
196 - Work around breakage introduced with MooseX::Types 0.32.
197
198
199 0.19 2012-03-04
200
201 - Some modules were missing a version number in the last release.
202
203
204 0.18 2012-03-04
205
206 - The Markdent::Handler::HTMLStream::Document and ::Fragment modules did not
207 detect when streaming to a file handle failed. This is because HTML::Stream
208 does not check that it's calls to ->print succeed. This has been fixed by
209 wrapping file handles (native or IO::Handle) in an object which checks that
210 print succeeds.
211
212 - Distro/packaging cleanup.
213
214
215 0.17 2010-09-27
216
217 - Avoid warnings from the next Moose.
218
219 - Added a Null handler.
220
221
222 0.16 2010-06-03
223
224 - The last release (and others?) did not include a $VERSION in its
225 modules. Doh.
226
227
228 0.15 2010-06-03
229
230 - Even more table parsing improvements. Now the parse speed is approximately
231 50 times faster than 0.13.
232
233
234 0.14 2010-06-03
235
236 - Greatly improved table parsing speed. Large tables took a very long time to
237 parse, as the parser ended up backtracking way too much. Thanks to Yuval
238 Kogman for his suggestions. Now large tables parse approximately 10 times
239 faster.
240
241
242 0.13 2010-06-01
243
244 - Fixed handling of a very pathological case for table parsing, which caused
245 the parser to die. Instead, it will now keep going. Your output may be
246 bizarre, but the parser should not die.
247
248 - Fixed handling of a tab character next to a cell delimiter. This caused the
249 parser to become very confused and go into an endless loop. Now such tabs
250 are simply stripped from the output (just like other whitespace next to a
251 cell delimiter).
252
253
254 0.12 2010-05-25
255
256 - Allow setting the handler class when calling Test::Markdent::parse_ok().
257
258
259 0.11 2010-05-25
260
261 - Moved Test::Markdent into lib (from t/lib), since it is useful to anyone who
262 wants to write a Markdent dialect.
263
264
265 0.10 2010-05-19
266
267 - Split all HTML generating code into ::Document and ::Fragment classes. This
268 means that Markdent::Handler::HTMLStream is now
269 Markdent::Handler::HTMLStream::Document and
270 Markdent::Handler::HTMLStream::Fragment. Similarly, Markdent::Simple is now
271 Markdent::Simple::Document and Markdent::Simple::Fragment.
272
273 This was done to make it easy to turn a snippet of Markdown into a snippet
274 of HTML. Previously, you could only generate a complete HTML document.
275
276
277 0.09 2010-02-15
278
279 - The Theory dialect parser would parse text in brackets as a table caption
280 even if no table followed, for example:
281
282 [Not a caption]
283
284 Just some text
285
286
287 0.08 2009-12-06
288
289 - Added a missing dependency, MooseX::Role::Parameterized.
290
291
292 0.07 2009-11-27
293
294 - You can now include a header marker at the beginning and/or end of the
295 table. This matches how MySQL outputs tables from its CLI tool.
296
297 +------+-------------+------------------------------+--------+
298 | id | name | description | price |
299 +------+-------------+------------------------------+--------+
300 | 1 | gizmo | Takes care of the doohickies | 1.99 |
301 | 2 | doodad | Collects *gizmos* | 23.80 |
302 | 10 | dojigger | Foo | 102.98 |
303 | 1024 | thingamabob | Self-explanatory, no? | 0.99 |
304 +------+-------------+------------------------------+--------+
305
306 Suggested by David Wheeler.
307
308
309 0.06 2009-11-27
310
311 - Added a new handler, Markdent::Handler::HTMLFilter, which removes all HTML
312 events (except for entities) from the event stream.
313
314 - Added a new role, Markdent::Role::FilterHandler, to make it easier to write
315 filtering handlers.
316
317
318 0.05 2009-11-27
319
320 - Theory-style tables no longer need to have header rows. They can just
321 consist of a body.
322
323 - Theory-style header rows can use equals signs (=) in the marker:
324
325 | Header 1 | Header 2 |
326 +==========+==========+
327 | Body 1 | Body 2 |
328
329
330 0.04 2009-11-26
331
332 - Added Markdent::Manual, a start at more comprehensive high-level docs on how
333 to use Markdent.
334
335 - Fixed some parsing bugs where some match methods did not return true, which
336 could cause failures if the handler's handle_event method didn't return
337 true. Now all match methods explicitly return true when they match (as they
338 should).
339
340 - Added a new handler, Multiplexer, which lets you multiplex the event stream
341 to more than one handler at a time.
342
343
344 0.03 2009-11-26
345
346 - Added Markdent::Handler::CaptureEvents and Markdent::CapturedEvents. In my
347 benchmarks, thawing a Markdent::CaptureEvents object and replaying its
348 events to generate HTML for a bunch of documents was about 6x faster than
349 parsing from scratch.
350
351 - Started implementing some Markdown extensions proposed by David Wheeler as
352 the "Theory" dialect. This includes a nice syntax for tables. For now this
353 only includes the table extension.
354
355 - Made it easy to specify a dialect for a parser by writing
356
357 my $parser = Markdent::Parser->new( dialect => 'Theory' );
358
359 - HTML comments are now parsed as comments, not text or HTML tags. There are
360 two events for this, HTMLCommentBlock and HTMLComment. The block version is
361 for standalone comments, the other is for comments embedded in text.
362
363 - Made tag balancing a bit more generic with the Markdent::Role::BalancedEvent
364 role, which makes it easier to compare start & end events to see if they're
365 balanced.
366
367 - Refactored some parser internals to improve subclassability.
368
369
370 0.02 2009-11-24
371
372 - Fixed some cases of nested strong and em in the Standard dialect's
373 parser. It was broken for cases like this:
374
375 *This **is a test***.
376
377 This should turn into HTML like
378
379 <em>This <strong>is a test</strong></em>
380
381 but instead turned into
382
383 <em>This</em> <em>is a test</em>*.
384
385 - Added some missing test dependencies.
386
387 - There is now a separate class for each type of event, all of which do the
388 Markdent::Role::Event role.
389
390
391 0.01 2009-11-21
392
393 - First version, released on an unsuspecting world. Still rather alpha, and
394 internals are subject to lots of change.
395