# @twinkleplop/markdown ## 0.2.4 ### Patch Changes - Updated dependencies [[`cde350b`](https://github.com/pngwn/twinkleplop/commit/cde350b2de3db9e4e06a2b2cbccf779c80d9f224)]: - @twinkleplop/core@0.4.1 ## 0.2.3 ### Patch Changes - [#182](https://github.com/pngwn/twinkleplop/pull/182) [`f43d548`](https://github.com/pngwn/twinkleplop/commit/f43d5481742507c15983fac4f251b4e43bfd51fa) Thanks [@pngwn](https://github.com/pngwn)! - Unfinished input can be highlighted as it arrives. Pass `open: true` as a render option of a language package's function, as the second argument of a tokenize function, or as `{ open: true }` in the last argument of markdown-core's `fence()`. ```ts const html = highlight(code_so_far, { open: true }); ``` While the input is open, a comment the input ends in is hidden until it is clear whether it is a `[!verb ...]` directive, instead of showing as a comment first, a pair with no closer yet applies to the end, and lines or anchors that have not arrived are not reported. `overlays` items and fence meta lines past the current end are clamped or dropped instead of throwing. Mistakes that more text cannot fix are reported as before. - Updated dependencies [[`f43d548`](https://github.com/pngwn/twinkleplop/commit/f43d5481742507c15983fac4f251b4e43bfd51fa), [`956212d`](https://github.com/pngwn/twinkleplop/commit/956212db7cef26d5d2c5e567f9b9ad5b0c147e99), [`34a3add`](https://github.com/pngwn/twinkleplop/commit/34a3addafcd11e6471b07ed45bdf84d29a8f6e11)]: - @twinkleplop/core@0.4.0 ## 0.2.2 ### Patch Changes - Updated dependencies [[`a09ba1a`](https://github.com/pngwn/twinkleplop/commit/a09ba1a35cc5c979bf967215b7c28c1b9b59b7b7), [`ff0e7f2`](https://github.com/pngwn/twinkleplop/commit/ff0e7f24eb4d5cefde60ae6d4806b218afd30f18), [`07e6f3b`](https://github.com/pngwn/twinkleplop/commit/07e6f3bd8b789169ca30fa2ff2af91c5ad71b724)]: - @twinkleplop/core@0.3.2 ## 0.2.1 ### Patch Changes - Updated dependencies [[`dafdec0`](https://github.com/pngwn/twinkleplop/commit/dafdec03261143aa4b581d7520bd8d7e417bc2e1), [`2aed5c1`](https://github.com/pngwn/twinkleplop/commit/2aed5c167f34b8314494c65cb0c4ac2cbe62bbbd), [`f7c8b46`](https://github.com/pngwn/twinkleplop/commit/f7c8b4604f97e479d0d0648c883845ac7eaa7019), [`2fab5c9`](https://github.com/pngwn/twinkleplop/commit/2fab5c91d9f4c8602254869d299d9f03d23029d2)]: - @twinkleplop/core@0.3.1 ## 0.2.0 ### Minor Changes - [#142](https://github.com/pngwn/twinkleplop/pull/142) [`a1799a7`](https://github.com/pngwn/twinkleplop/commit/a1799a77787b361a6cd7eefb3faab1573b7fcf32) Thanks [@pngwn](https://github.com/pngwn)! - Markdown highlights fenced code blocks with the languages you pass, keyed by the language named on the fence. The markdown package still depends on no language, so you only ship the ones you use. Core exports `embed_labelled` for hosts that name an embedded language in their text. ```ts import { language } from "@twinkleplop/markdown"; import { tokenize as js } from "@twinkleplop/javascript"; const javascript = js(); const md = language({ languages: { js: javascript, javascript } }); ``` - [#142](https://github.com/pngwn/twinkleplop/pull/142) [`a1799a7`](https://github.com/pngwn/twinkleplop/commit/a1799a77787b361a6cd7eefb3faab1573b7fcf32) Thanks [@pngwn](https://github.com/pngwn)! - Markdown highlights front matter with the language you pass as `front_matter`, as in `language({ front_matter: yaml() })` with `tokenize` from `@twinkleplop/yaml`. ### Patch Changes - [#146](https://github.com/pngwn/twinkleplop/pull/146) [`0ffe445`](https://github.com/pngwn/twinkleplop/commit/0ffe44566526db2afd2db4ce2b3c8aec95c3628a) Thanks [@pngwn](https://github.com/pngwn)! - Markdown fidelity now applies per style. Leaving `bold`, `italic`, `strike`, `code`, `link_text` or `autolink` out of the fidelity list renders that style as plain text, while the styles nested inside it keep theirs, and `fidelity: "low"` clears all six. Before, any one of them turned all six on, and none of them could be turned off. A tagged reclassifier can list the grammar types each of its tags owns in `clears`, and those tokens are cleared before the pipeline runs when the tag is left out. - Updated dependencies [[`2ae6c60`](https://github.com/pngwn/twinkleplop/commit/2ae6c6060dfd6378e60bebe4a8dc21d2fb39160d), [`1d4b72b`](https://github.com/pngwn/twinkleplop/commit/1d4b72b3a011927693d28f5c4f677fde8ba06903), [`e5f3f1e`](https://github.com/pngwn/twinkleplop/commit/e5f3f1e8aec1922dee8824f1c8fb9297e7e4b6f1), [`3beddcd`](https://github.com/pngwn/twinkleplop/commit/3beddcdf745ee82bed8da5dcab75c7f7446d26ac), [`a1799a7`](https://github.com/pngwn/twinkleplop/commit/a1799a77787b361a6cd7eefb3faab1573b7fcf32), [`0ffe445`](https://github.com/pngwn/twinkleplop/commit/0ffe44566526db2afd2db4ce2b3c8aec95c3628a), [`6d1ed65`](https://github.com/pngwn/twinkleplop/commit/6d1ed65e6008c303c13dc00bd4054116b7047a20), [`82aaf5f`](https://github.com/pngwn/twinkleplop/commit/82aaf5f9f477de4237beed4e2263b07ae5430e7a), [`8394d2b`](https://github.com/pngwn/twinkleplop/commit/8394d2b69e340af554496ff7760fa59792aee7a7), [`504e57a`](https://github.com/pngwn/twinkleplop/commit/504e57a82e09cf0a2b554813b1dcb125aec7d5c5), [`52b9c91`](https://github.com/pngwn/twinkleplop/commit/52b9c91132e89d063fe33025ea6f78b467c4deaa), [`129df53`](https://github.com/pngwn/twinkleplop/commit/129df5366ee54aec29842a5effe9d2602c1380c7), [`725f37d`](https://github.com/pngwn/twinkleplop/commit/725f37d87db16abcfe32dad4247d1938a858f6b8)]: - @twinkleplop/core@0.3.0 ## 0.1.5 ### Patch Changes - Updated dependencies [[`1e813c5`](https://github.com/pngwn/twinkleplop/commit/1e813c5785391363b4c846621fdad77b4b489df1), [`a2b669d`](https://github.com/pngwn/twinkleplop/commit/a2b669ddfddfc8cc2be4867a8c6d3fef3b154a84), [`ebb0a14`](https://github.com/pngwn/twinkleplop/commit/ebb0a1476fcb384f61dd0a6283d231c89279fdc6), [`56c345b`](https://github.com/pngwn/twinkleplop/commit/56c345b2146ec0a8e01b5bcb56e2425f726107e0), [`3dc045b`](https://github.com/pngwn/twinkleplop/commit/3dc045b7b6443377cd4e8a52f3a1d859adfb4067), [`f8c77c9`](https://github.com/pngwn/twinkleplop/commit/f8c77c9f7f8bb63900a4b2e10cf602dd1f638166), [`6c55db8`](https://github.com/pngwn/twinkleplop/commit/6c55db84a8eb2ebf0f9436af7c547147db4ff9b5), [`7586aee`](https://github.com/pngwn/twinkleplop/commit/7586aee11fcd77ce1ca8440039420f28448bbb86)]: - @twinkleplop/core@0.2.2 ## 0.1.4 ### Patch Changes - [#85](https://github.com/pngwn/twinkleplop/pull/85) [`2c5f3ef`](https://github.com/pngwn/twinkleplop/commit/2c5f3ef0f9ffa5f57c8fd0da0e46e71fbcaa7fbd) Thanks [@pngwn](https://github.com/pngwn)! - Packages are now published under the MIT license. - [#85](https://github.com/pngwn/twinkleplop/pull/85) [`9df0efc`](https://github.com/pngwn/twinkleplop/commit/9df0efc1785b21ea996dd658615bd0c24483c67c) Thanks [@pngwn](https://github.com/pngwn)! - Packages now contain only their built code, without source, tests or sourcemaps, which takes the combined install size from 7.2 MB to 1.1 MB. The language packages no longer expose a `./test` entry point. - Updated dependencies [[`1618a01`](https://github.com/pngwn/twinkleplop/commit/1618a015421bccbcc3455f13a8374ae6dccde42d), [`2c5f3ef`](https://github.com/pngwn/twinkleplop/commit/2c5f3ef0f9ffa5f57c8fd0da0e46e71fbcaa7fbd), [`9df0efc`](https://github.com/pngwn/twinkleplop/commit/9df0efc1785b21ea996dd658615bd0c24483c67c)]: - @twinkleplop/core@0.2.1 ## 0.1.3 ### Patch Changes - [#63](https://github.com/pngwn/twinkleplop/pull/63) [`dd94480`](https://github.com/pngwn/twinkleplop/commit/dd944801bd5b12b310e3f77346d3762d9fe378d4) Thanks [@pngwn](https://github.com/pngwn)! - Long diffs, markdown documents and SQL scripts now highlight correctly all the way through. After a few hundred hunks, headings, list items or `@var` parameters, highlighting used to go wrong and stay wrong, with `diff --git` lines losing their colour or SQL `--` comments showing as operators. Rust files with hundreds of malformed char literals such as `'ab'` are fixed too. - [#63](https://github.com/pngwn/twinkleplop/pull/63) [`28725be`](https://github.com/pngwn/twinkleplop/commit/28725be2938a336e9c220a0b77090c1a87fcfb0e) Thanks [@pngwn](https://github.com/pngwn)! - An entity or a bare `[text]` inside a heading or an emphasis span keeps the rest of that heading or span styled. ```text ## Tom & Jerry <- " Jerry" stays heading text **a & b** c <- " b" stays bold and the second ** closes it ``` - Updated dependencies [[`e36051c`](https://github.com/pngwn/twinkleplop/commit/e36051c72d4956e25c79daf627ec08f2c2934edf), [`185c681`](https://github.com/pngwn/twinkleplop/commit/185c681197726bc90abed3cca566e37078dab105), [`fba34b1`](https://github.com/pngwn/twinkleplop/commit/fba34b14df85f4f61fc54f75c977a1145ee8b18a), [`84b7527`](https://github.com/pngwn/twinkleplop/commit/84b75279520c63ca19d322cfbced72e41e439085), [`6710782`](https://github.com/pngwn/twinkleplop/commit/671078298b33450abfca1006d55666098d5f351c), [`4fec60d`](https://github.com/pngwn/twinkleplop/commit/4fec60d3295dba2175ab34742025ad1206a186b1), [`4fec60d`](https://github.com/pngwn/twinkleplop/commit/4fec60d3295dba2175ab34742025ad1206a186b1), [`d06f61e`](https://github.com/pngwn/twinkleplop/commit/d06f61efed390b05d572bc65bf8c772a15a9f987), [`a3e1a0c`](https://github.com/pngwn/twinkleplop/commit/a3e1a0c90a02ee14caf0dd4fa09d7df9dd591cfa), [`8cc71aa`](https://github.com/pngwn/twinkleplop/commit/8cc71aaea9008e5b7a5e53345e386990b85aed3a)]: - @twinkleplop/core@0.2.0 ## 0.1.2 ### Patch Changes - [#47](https://github.com/pngwn/twinkleplop/pull/47) [`75ac009`](https://github.com/pngwn/twinkleplop/commit/75ac0094b8a5039b35d5c204070b48fec0c7daa8) Thanks [@pngwn](https://github.com/pngwn)! - Ship type declarations. Each package now builds a `dist/types.d.ts` and exposes it through a `types` export condition. Previously a plain `import { language } from "@twinkleplop/"` failed with `TS7016` under `strict`, and silently resolved to `any` without `noImplicitAny`, so a permissive compile was no evidence of type safety. The `main` field also pointed at `src/index.js`, which no package shipped; it now points at `dist/index.js`. - Updated dependencies [[`4f1ce83`](https://github.com/pngwn/twinkleplop/commit/4f1ce837b309e8d2e26b8a2967fa8bb9b183eb03), [`4bbdfbb`](https://github.com/pngwn/twinkleplop/commit/4bbdfbbd4a13d2fc4099d0b37563fda1b31cc5f4), [`4bbdfbb`](https://github.com/pngwn/twinkleplop/commit/4bbdfbbd4a13d2fc4099d0b37563fda1b31cc5f4), [`75ac009`](https://github.com/pngwn/twinkleplop/commit/75ac0094b8a5039b35d5c204070b48fec0c7daa8), [`4bbdfbb`](https://github.com/pngwn/twinkleplop/commit/4bbdfbbd4a13d2fc4099d0b37563fda1b31cc5f4), [`75ac009`](https://github.com/pngwn/twinkleplop/commit/75ac0094b8a5039b35d5c204070b48fec0c7daa8), [`75ac009`](https://github.com/pngwn/twinkleplop/commit/75ac0094b8a5039b35d5c204070b48fec0c7daa8), [`ae80327`](https://github.com/pngwn/twinkleplop/commit/ae8032733702e2a838ddabab7f641120a59aed5e)]: - @twinkleplop/core@0.1.2 ## 0.1.1 ### Patch Changes - [#37](https://github.com/pngwn/twinkleplop/pull/37) [`562d1e2`](https://github.com/pngwn/twinkleplop/commit/562d1e2d645073ca4ef5874e2d9e57e240a31cb4) Thanks [@pngwn](https://github.com/pngwn)! - Patch release covering the fixes and internal changes made since 0.1.0. - Updated dependencies [[`2b81a07`](https://github.com/pngwn/twinkleplop/commit/2b81a07d969ba6c79e0210bda36735a28781739b), [`562d1e2`](https://github.com/pngwn/twinkleplop/commit/562d1e2d645073ca4ef5874e2d9e57e240a31cb4)]: - @twinkleplop/core@0.1.1