aboutsummaryrefslogtreecommitdiff
path: root/changelog.txt
blob: 4ba17833485fa8cc4ae0abc10f6bbe35fec58e1a (plain)
  1. [0.27]
  2.   * Update statement on blank lines and lists (Jesse Rosenthal).
  3. The definition of a list still said that "two blank lines end all
  4. containing lists." That rule has been removed.
  5. * Clarify that the exception for ordered lists only applies to first
  6. item in list (#420).
  7. * Added cases clarifying precedence of shortcut links (#427).
  8. * Added h2..h6 to block tag list (#430).
  9. * Remove duplicated test (Maxim Dikun). Tests 390 and 391 were the same.
  10. * Use fenced code blocks for markdown examples that are not test cases
  11. for uniformity.
  12. * Added closing paren (#428).
  13. * Test suite: Don't mess up on examples with 32 backticks (#423).
  14. * Removed duplicate reference to "container block".
  15. * Add examples for Unicode whitespace (Timothy Gu). In light of
  16. jgm/commonmark.js#107, add a few examples/test cases to make sure the
  17. distinction between Unicode whitespace and regular whitespace is kept.
  18. * Fix missing closing paren typo (Robin Stocker).
  19. [0.26]
  20. * Empty list items can no longer interrupt a paragraph.
  21. This removes an ambiguity between setext headers and
  22. lists in cases like
  23. foo
  24. -
  25. Removed the "two blank lines breaks out of lists" rule.
  26. This is incompatible with the principle of uniformity
  27. (and indeed with the spec for list items, which requires
  28. that the meaning of a chunk of lines not change when it
  29. is put into a list item.)
  30. * Ordered list markers that interrupt a paragraph must start with 1.
  31. * Improved the section on tabs. Added some test cases for ATX
  32. headers and thematic breaks. Clarified that it's not just cases
  33. that affect indentation that matter, but all cases where whitespace
  34. matters for block structure.
  35. * Removed example of ATX header with tab after `#`.
  36. * Allow HTML blocks to end on the last line of their container
  37. (Colin O'Dell, #103).
  38. * Spec changes in strong/emph parsing. See
  39. https://talk.commonmark.org/t/emphasis-strong-emphasis-corner-cases/2123
  40. for motivation. This restores intuitive parsings for a number of cases.
  41. The main change is to disallow strong or emph when one of
  42. the delimiters is "internal" and the sum of the lengths of
  43. the enclosing delimiter runs is a multiple of 3. Thus,
  44. `**foo*bar***` gets parsed `<strong>foo*bar</strong>` rather than
  45. `<em><em>foo</em>bar</em>**` as before. Thanks to Fletcher Penney
  46. for discussion.
  47. * Add tests to check that markdown parsing is working fine after an HTML
  48. block end tag (Alexandre Mutel).
  49. * Add test case for nested lists with an indent > 4 (Alexandre Mutel).
  50. * Cleaned up terminology around lazy continuation lines. Added some links.
  51. * Fixed broken links and typos (Artyom, Matthias Geier, Sam Estep).
  52. * Use `≤` instead of `<` in list item spec for clarity.
  53. * Add point about readibility to "What is Markdown" section.
  54. * Add example for list item starting with a blank line with spaces
  55. (Robin Stocker).
  56. * Make interact more button-like and clearer (Jeff Atwood).
  57. * `spec_tests.py`: exit code is now sum of failures and errors.
  58. * `spec_tests.py`: specify newline when opening file.
  59. [0.25]
  60. * Added several more tab-handling cases (see jgm/cmark#101).
  61. * Fixed spec test for tabs. In the blockquote with a tab following
  62. the `>`, only one space should be consumed, yielding two spaces
  63. at the beginning of the content.
  64. * Update license year range to 2016 (Prayag Verma).
  65. * Fixed typo: setext heading line -> setext heading underline (#389).
  66. * Fixed date 2015->2016 (#388)
  67. [0.24]
  68. * New format for spec tests, new lua formatter for specs.
  69. The format for the spec examples has changed from
  70. .
  71. markdown
  72. .
  73. html
  74. .
  75. to
  76. ```````````````````````````````` example
  77. markdown
  78. .
  79. html
  80. ````````````````````````````````
  81. One advantage of this is that `spec.txt` becomes a valid
  82. CommonMark file.
  83. * Change `tests/spec_test.py` to use the new format.
  84. * Replace `tools/makespec.py` with a lua script, `tools/make_spec.lua`,
  85. which uses the `lcmark` rock (and indirectly libcmark). It can
  86. generate HTML, LaTeX, and CommonMark versions of the spec. Pandoc
  87. is no longer needed for the latex/PDF version. And, since the new
  88. program uses the cmark API and operates directly on the parse tree,
  89. we get much more reliable translations than we got with the old
  90. Python script (#387).
  91. * Remove whitelist of valid schemes. Now a scheme is any sequence
  92. of 2-32 characters, beginning with an ASCII letter, and containing
  93. only ASCII letters, digits, and the symbols `-`, `+`, `.`.
  94. Discussion at <http://talk.commonmark.org/t/555>.
  95. * Added an example: URI schemes must be more than one character.
  96. * Disallow spaces in link destinations, even inside pointy braces.
  97. Discussion at <http://talk.commonmark.org/t/779> and
  98. <http://talk.commonmark.org/t/1287/12>.
  99. * Modify setext heading spec to allow multiline headings.
  100. Text like
  101. Foo
  102. bar
  103. ---
  104. baz
  105. is now interpreted as heading + paragraph, rather than
  106. paragraph + thematic break + paragraph.
  107. * Call U+FFFD the REPLACEMENT CHARACTER, not the "unknown code
  108. point character."
  109. * Change misleading undefined entity name example.
  110. * Remove misleading claim about entity references in raw HTML
  111. (a regression in 0.23). Entity references are not treated
  112. as literal text in raw HTML; they are just passed through.
  113. * CommonMark.dtd: allow `item` in `custom_block`.
  114. [0.23]
  115. * Don't allow space between link text and link label in a
  116. reference link. This fixes the problem of inadvertent capture:
  117. [foo] [bar]
  118. [foo]: /u1
  119. [bar]: /u2
  120. * Rename "horizontal rule" -> "thematic break". This matches the HTML5
  121. meaning for the hr element, and recognizes that the element may be
  122. rendered in various ways (not always as a horizontal rule).
  123. See http://talk.commonmark.org/t/horizontal-rule-or-thematic-break/912/3
  124. * Rename "header" -> "heading". This avoids a confusion that might arise
  125. now that HTML5 has a "header" element, distinct from the "headings"
  126. h1, h2, ... Our headings correspond to HTML5 headings, not HTML5 headers.
  127. The terminology of 'headings' is more natural, too.
  128. * ATX headers: clarify that a space (or EOL) is needed; other whitespace
  129. won't do (#373). Added a test case.
  130. * Rewrote "Entities" section with more correct terminology (#375).
  131. Entity references and numeric character references.
  132. * Clarified that spec does not dictate URL encoding/normalization policy.
  133. * New test case: list item code block with empty line (Craig M.
  134. Brandenburg).
  135. * Added example with escaped backslash at end of link label (#325).
  136. * Shortened an example so it doesn't wrap (#371).
  137. * Fixed duplicate id "attribute".
  138. * Fix four link targets (Lucas Werkmeister).
  139. * Fix typo for link to "attributes" (Robin Stocker).
  140. * Fix "delimiter" spellings and links (Sam Rawlins).
  141. * Consistent usage of "we" instead of "I" (renzo).
  142. * CommonMark.dtd - Rename `html` -> `html_block`,
  143. `inline_html` -> `html_inline` for consistency. (Otherwise it is too
  144. hard to remember whether `html` is block or inline, a source of
  145. some bugs.)
  146. * CommonMark.dtd - added `xmlns` attribute to document.
  147. * CommonMark.dtd - added `custom_block`, `custom_inline`.
  148. * CommonMark.dtd - renamed `hrule` to `thematic_break`.
  149. * Fixed some HTML inline tests, which were actually HTML blocks, given
  150. the changes to block parsing rules since these examples were written
  151. (#382).
  152. * Normalize URLs when comparing test output. This way we don't fail
  153. tests for legitimate variations in URL escaping/normalization policies
  154. (#334).
  155. * `normalize.py`: don't use `HTMLParseError`, which has been removed
  156. as of python 3.5 (#380).
  157. * Minor spacing adjustments in test output, to match cmark's output,
  158. since we test cmark without normalization.
  159. * `makespec.py`: remove need for link anchors to be on one line.
  160. * `makespec.py`: Only do two levels in the TOC.
  161. * Use `display:inline-block` rather than floats for side-by-side.
  162. This works when printed too.
  163. * Added better print CSS.
  164. [0.22]
  165. * Don't list `title` twice as HTML block tag (Robin Stocker).
  166. * More direct example of type 7 HTML block starting with closing tag.
  167. * Clarified rule 7 for HTML blocks. `pre`, `script`, and `style`
  168. are excluded because they're covered by other rules.
  169. * Clarified that type 7 HTML blocks can start with a closing tag (#349).
  170. * Removed `pre` tag from rule 6 of HTML blocks (#355).
  171. It is already covered by rule 1, so this removes an ambiguity.
  172. * Added `iframe` to list of tags that always start HTML blocks (#352).
  173. * Added example of list item starting with two blanks (#332).
  174. * Added test case clarifying laziness in block quotes (see
  175. jgm/commonmark.js#60).
  176. * Add an example with mixed indentation code block in "Tabs" section
  177. (Robin Stocker). This makes sure that implementations skip columns instead
  178. of offsets for continued indented code blocks.
  179. * Clarified that in ATX headers, the closing `#`s must be unescaped,
  180. and removed misleading reference to "non-whitespace character" in
  181. an example (#356).
  182. * Changed anchor for "non-whitespace character" to reflect new name.
  183. * Removed ambiguities concerning lines and line endings (#357, Lasse
  184. R.H. Nielsen). The previous spec allowed, technically, that a line
  185. ending in `\r\n` might be considered to have two line endings,
  186. or that the `\r` might be considered part of the line and the
  187. `\n` the line ending. These fixes rule out those interpretations.
  188. * Clarify that a character is any code point.
  189. * Space in "code point".
  190. * Capitalize "Unicode".
  191. * Reflow paragraph to avoid unwanted list item (#360, #361).
  192. * Avoid extra space before section number in `spec.md`.
  193. * `makespec.py`: Use `check_output` for simpler `pipe_through_prog`.
  194. * In README, clarified build requirements for `spec.html`, `spec.pdf`.
  195. * Fixed some encoding issues in `makespec.py` (#353).
  196. * Fixed various problems with `spec.pdf` generation (#353).
  197. * Added version to coverpage in PDF version of spec.
  198. [0.21.1]
  199. * Added date.
  200. [0.21]
  201. * Changed handling of tabs. Instead of having a preprocessing step
  202. where tabs are converted to spaces, we now handle tabs directly in
  203. the parser. This allows tabs to be retained in code blocks and code
  204. spans. This change adds some general language to the effect that,
  205. for purposes of determining block structure, tabs are to be treated
  206. just like equivalent spaces.
  207. * Completely rewrote spec for HTML blocks. The new spec provides
  208. better handling of tags like `<del>`, which can be either block
  209. or inline level content, better handling of custom tags, and
  210. better handling of verbatim contexts like `<pre>`, comments,
  211. and `<script>`.
  212. * Added 9-digit limit on ordered list start number.
  213. Some browsers use signed 32-bit integers for indexing
  214. the items of an ordered list, and this can lead to odd
  215. or undefined behavior if 10-digit start numbers are allowed.
  216. * Allow (non-initial) hyphens in tag names (#239). Custom
  217. tags in HTML5 must contain hyphens.
  218. * Clarified that HTML block is closed at end of containing
  219. block, not just end of the document (as with fenced code blocks.)
  220. * Specify nested link definition behavior in prose (Benjamin
  221. Dumke-von der Ehe).
  222. * Added test for edge case in link reference parsing
  223. (Benjamin Dumke-von der Ehe, see jgm/commonmark.js#49).
  224. * Added link tests with fragment identifiers and queries (David
  225. Green, #342).
  226. * Added test cases with a literal backslash in a link destination
  227. (see jgm/commonmark.js#45).
  228. * Added test for entity `&ngE;` which resolves to two code points.
  229. Put entity tests on several lines for readability (see
  230. jgm/commonmark.js#47).
  231. * Fixed broken "pre" literal HTML example. Contents
  232. weren't escaped properly.
  233. * Simplified defn of "unicode whitespace character,"
  234. rectifying omission of line tabulation, U+000B (#343).
  235. * Removed ambiguity in definition of "line" (#346).
  236. * Rewrapped two prose lines so `+` does not begin a line (#347).
  237. * Added another test with overlapping emphasis markers.
  238. * Fixed link to 'attributes'.
  239. * Revised appendix, "A parsing strategy," and
  240. added a description of emphasis/link parsing algorithm.
  241. * `spec_tests.py` - set options for conversions, set library
  242. paths in a more cross-platform way.
  243. * `spec_tests.py`: force utf-8 on test failure output and
  244. `--dump-tests` (#344, #345).
  245. * `spec_tests.py`: Properly handle visible tab `→` in expected output.
  246. * `normalize.py`: Don't collapse whitespace inside pre tag.
  247. * Added `spec.html` to `.gitignore` (#339).
  248. * Add `-dev` suffix to spec version after release (eksperimental).
  249. * Rename "non-space" to "non-whitespace" (Konstantin Zudov, #337).
  250. [0.20]
  251. * Require at least one nonspace character in a link label (#322).
  252. * Require replacement (rather than omission) of U+0000 (#327).
  253. * Clarified that entities resolving to U+0000 are to be
  254. replaced by U+FFFD (#323).
  255. * Removed statement that what counts as a line ending is
  256. platform-dependent (#326). We now count `\r`, `\n`,
  257. or `\r\n` as a line ending regardless of the platform.
  258. (The line ending styles can even be mixed in a single document.)
  259. * Defined "space."
  260. * Revised "non-space character". Previously a non-space character
  261. was defined as anything but a space (U+0020). Now it is anything
  262. that is not a whitespace character (as defined in the spec).
  263. * Clarified that tab expansion is a preprocessing step (#330).
  264. * Clarified lazy block quote examples (#328).
  265. * Clarified precedence of indentation that meets conditions for
  266. both list item continuation blocks and indented code.
  267. * Added a test case with `#` directly followed by a letter
  268. (not an ATX header).
  269. * Added two test cases illustrating that a list at the
  270. outer level can have items that are indented by more
  271. than four spaces (see commonmark.js#42 and
  272. <http://talk.commonmark.org/t/odd-list-behaviour/1189>).
  273. * Fixed typo in emphasis examples.
  274. [0.19]
  275. * Fixed rules for `_`-based emphasis and strong emphasis (#317).
  276. Previously `_(bar)_.` was not parsed as containing emphasis
  277. because the closing delimiter is both left- and right- flanking.
  278. This fix allows such delimiters, provided they're followed
  279. by punctuation (i.e., they have punctuation on both sides).
  280. Similarly, mutatis mutandis, for opening delimiters and for `__`.
  281. * Clarified definitions of left-flanking and right-flanking (#310).
  282. The spec now says explicitly that the beginning and end of line count
  283. as whitespace for purposes of this definition.
  284. * Clarified that a code fence followed by header line isn't a header (#306).
  285. * Fixed alignment in flankingness examples (cosmetic).
  286. * Fixed last "right flanking but not left flanking" example (#316).
  287. * Fixed a broken link (Konstantin Zudov).
  288. * Added link to list of implementations on wiki.
  289. * Fixed mistake in examples of left/right flanking delimiters
  290. (Konstantin Zudov).
  291. * Spell out `iff` (if and only if) the first time it is used (#309).
  292. * Fixed typos (isoroku, #309).
  293. * Clarified wording for soft line break: newline can't be preceded
  294. by two spaces or a backslash.
  295. * Replaced some references to UTF-8 that should be to unicode.
  296. * Fixed dingus link in tools/template.html.
  297. * Replaced obsolete reference to `spec2md.pl` in spec (#304).
  298. [0.18]
  299. * Added a shortcut link test with mismatched brackets (#282).
  300. * Added cases with newline whitespace around emphasis open delimiter
  301. (#282).
  302. * Added list item examples with no space after marker (#282).
  303. * Added additional test showing backslash escapes don't work in
  304. autolinks (#282).
  305. * Added test for multiline title in reference definition (#282).
  306. * Added a reference link definition test case (#282).
  307. * Clarified that link titles can't contain blank lines (#271).
  308. * Revised Rule 3 for list items (#275). Previously this just applied to
  309. empty list items. It has been rewritten to apply to any list item
  310. starting with a blank line, including items like:
  311. -
  312. ```
  313. code
  314. ```
  315. * Added U+000B and U+000C as whitespace characters (#300).
  316. * Added comment on sourcepos attribute format in DTD (#298).
  317. * Use `--smart` option in producing HTML version of spec.
  318. * Clarified that delimiter runs at beginning/end of line behave as
  319. if preceded/followed by whitespace (#302).
  320. * Ensure that URLs in examples have slash after domain.
  321. This helps with #9, making these tests less sensitive to
  322. the normalizer used.
  323. * Fixed typo (Robin Stocker).
  324. [0.17]
  325. * Improved rule limiting intraword `_` for emphasis and strong emphasis.
  326. To prevent intra-word emphasis, we used to check to see if
  327. the delimiter was followed/preceded by an ASCII alphanumeric.
  328. We now do something more elegant: whereas an opening `*` must
  329. be left-flanking, an opening `_` must be left-flanking *and
  330. not right-flanking*. And so on for the other cases.
  331. All the original tests passed except some tests with Russian
  332. text with internal `_`, which formerly created emphasis but no
  333. longer do with the new rule. These tests have been adjusted.
  334. A few new test cases have been added to illustrate the rule.
  335. * Added example with link break inside pointy braces (no link) (#295).
  336. * Added spec example: loose list with blank line after fenced code (#285).
  337. [0.16]
  338. * Rewrote beginning of Entities section, clarifying that only
  339. entities not in code blocks or spans are decoded.
  340. * Removed defective Example 449 (#284).
  341. * Fixed typo (#283).
  342. * Added intended two-space hard-breaks in Examples 521, 523.
  343. * Clarified that brackets in general don't take precedence over emph
  344. (#258).
  345. * Clarified that final newline is removed from paragraph content
  346. (#176).
  347. * Talk of "info string" rather than "attributes" for code blocks
  348. (#262).
  349. * Clarified precedence of code spans, HTML tags, autolinks (#259).
  350. * Fixed a number of internal links and duplicate references in the spec.
  351. * Linkify "info string" in spec.
  352. * Use shortcut reference links when possible in spec.txt.
  353. * cmark itself is now used to build spec.html, rather than pandoc.
  354. * Use shortcut reference links when possible in spec.txt. This
  355. relies on the new `spec2md.py` behavior of creating references
  356. for all internal anchors.
  357. * Moved some examples from block to inline HTML section.
  358. * Added examples of non-comments (#264).
  359. * Changed rule for comments to conform to HTML5 spec.
  360. * Made clear that any sequence of characters is a valid document
  361. (#266).
  362. * Changed wording: "is preferred" -> "takes precedence."
  363. * Regularized spelling of "non-space character" and added links
  364. (#260).
  365. * Use four spaces rather than five to show "four spaces is too much"
  366. (#261).
  367. [0.15]
  368. * Fixed some typos with "left-" and "right-flanking" delimiters in the
  369. section on emphasis and strong emphasis (#257).
  370. [0.14]
  371. * Clarified indented code blocks. Previously the spec said, wrongly,
  372. that a blank line was needed between a paragraph and a following
  373. code block. It is only needed between a code block and a following
  374. paragraph (due to lazy continuations). (Thanks to textnut.)
  375. * Added definitions of whitespace, unicode whitespace, punctuation,
  376. ASCII punctuation (#108).
  377. * Improved rules for emphasis and strong emphasis. This improves
  378. parsing of emphasis around punctuation. For background see
  379. <http://talk.commonmark.org/t/903/6>. The basic idea of the change
  380. is that if the delimiter is part of a delimiter clump that has
  381. punctuation to the left and a normal character (non-space,
  382. non-punctuation) to the right, it can only be an opener. If it has
  383. punctuation to the right and a normal character (non-space,
  384. non-punctuation) to the left, it can only be a closer. This handles
  385. cases like
  386. **Gomphocarpus (*Gomphocarpus physocarpus*, syn. *Asclepias
  387. physocarpa*)**
  388. and
  389. **foo "*bar*" foo**
  390. better than before.
  391. * Added test case for link-in-link-in-image (#252).
  392. * Fixed broken internal references.
  393. * Added another example of an unclarity in the canonical Markdown
  394. syntax description.
  395. * Reworded the principle of uniformity to be more general; it applies
  396. to all container blocks, not just list items.
  397. * Added a rule for empty list items (#242).
  398. * Clarified precedence of empty list items over setext header lines
  399. (#95).
  400. * Added an example with two blank lines in fenced code in a sublist (#180).
  401. * Added an explicit CC-BY-SA license to the spec (#55).
  402. [0.13]
  403. * Updated path of test program.
  404. * Use terminology "plain textual content" instead of "string."
  405. * Added condition that conforming parsers strip or replace NULL characters.
  406. * Changed Example 196 to reflect the spec's rules. It should not be a loose
  407. list as it has no blank lines.
  408. * Adjusted semantically insignificant formatting of HTML output.
  409. * Added example to spec of shortcut link with following space (#214).