Skip to content

Releases: neillrobson/markdown-it-tufte

v1.0.0 First official release

14 Feb 19:54
v1.0.0
9e80fe1
Compare
Choose a tag to compare

Aside from being the first major version of this library, this release just contains small fixes and enhancements discovered in the few weeks of using the previous development version (0.3.0).

Fixed

  • Lone/dangling carets in newthought markers are now consistently shifted outside the resulting span tag
  • Standalone images inside other blocks are now captured and rendered as <figure> elements

Figure tags for images

23 Jan 20:39
v0.3.0
f5788ea
Compare
Choose a tag to compare

Added

  • Special parsing for standalone images (![alt text](/path.png "title text")) using figure and figcaption
    • If the markdown-it-attrs plugin is installed, adding {.fullwidth} at the end of an image will add that class to the figure.

v0.2.0 Slug ID generation

21 Jan 15:42
c2cd536
Compare
Choose a tag to compare

Added

  • Slug IDs for sections (defined by second-level headings and new-thoughts)

v0.1.0 Initial Release

17 Jan 15:13
v0.1.0
8fc146c
Compare
Choose a tag to compare

Added

  • Side notes: [^ref] in the text with [^ref]: contents of note somewhere else in the Markdown.
  • Inline side notes: ^[contents of note] in the text.
  • Margin notes: [^ref]: {-} contents of note or ^[{-} contents of note]. Same as side note, but omits the reference number.
  • New-thought markers: ^^Happy families are all alike;^^ every unhappy family is unhappy in its own way. Renders the text surrounded by ^^ in small caps.
  • Automatic <section> breaks:
    • Entire text will be surrounded by at least one <section>
    • Each second-level heading will trigger a section split immediately above it
    • Each paragraph starting with a new-thought will trigger a section split immediately above it