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