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