Commit Graph

53 Commits

Author SHA1 Message Date
github-actions[bot] 8a2ac221a8 Version Packages (#580)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-24 16:03:32 +02:00
Vikram Bhamre 57c3089978 fix: quadratic code-block scan in isInsideCodeBlock (#574) 2026-08-21 16:17:48 +02:00
Farnabaz 3327c1870c chore: upgrade minor deps (#589) 2026-08-20 13:01:16 +02:00
Sjoerd Andringa a99d675691 fix(remend): drop lookbehind from single-tilde pattern for Safari < 16.3 (#576)
Co-authored-by: Sjoerd Andringa <sjoerd@jobport.nl>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-19 18:04:57 +02:00
omribz156 9f9640969c fix(remend): handle intraword asterisk closers (#582)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-19 13:45:11 +02:00
五茶 8093f2ae18 fix(remend): recognize LaTeX paren and bracket math (#523) 2026-08-13 12:39:56 +02:00
streamdown-github-app[bot] 15ba1aee86 Version Packages (#457)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-17 10:32:35 -07:00
Hayden Bleasel 38aae89ee3 Update broken-markdown-variants.test.ts 2026-03-17 09:06:16 -07:00
Hayden Bleasel d566c819d4 Create broken-markdown-variants.test.ts 2026-03-16 14:31:18 -07:00
Hayden Bleasel 51f5ba6cf7 Update remend priorities 2026-03-10 16:47:15 -07:00
Hayden Bleasel 716a5f05a9 Resolves #445 2026-03-10 16:46:10 -07:00
Gregory Moskaliuk e50b0c4399 feat(remend): add opt-in inline KaTeX completion (#446)
* feat(remend): add opt-in inline KaTeX completion

* docs(remend): update README to include inline KaTeX completion and clarify option defaults

* fix(remend): complete partial closing $ in block math without duplicating

* Add changeset for inline KaTeX completion feature

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 16:00:17 -07:00
streamdown-github-app[bot] 90f6bb67ac Version Packages (#431)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-05 11:01:39 -08:00
Hayden Bleasel cb4746b256 Improve a725579 2026-03-03 13:16:35 -08:00
Dmitrii a72557988a fix(remend): don't complete emphasis/strikethrough markers inside complete inline code spans (#426)
* fix(remend): don't complete bold/italic/strikethrough inside complete inline code spans

Bold, italic, and strikethrough handlers were using isWithinCodeBlock()
which only detects triple-backtick fenced code blocks. Markers inside
single-backtick inline code spans (e.g. `**bold`) were incorrectly
completed, leaking outside the code span.

Fix:
- Add isWithinCompleteInlineCode() to code-block-utils.ts that returns
  true only when a position is inside a *complete* (both delimiters
  present) inline code span. This preserves the existing streaming
  behavior where emphasis inside an *incomplete* inline code span
  (still being streamed) continues to be closed correctly.
- Apply the check in handleIncompleteBold, handleIncompleteBoldItalic,
  handleIncompleteDoubleUnderscoreItalic, handleIncompleteSingleAsterisk-
  Italic, and handleIncompleteStrikethrough.

Fixes #424

* fix(remend): add isWithinCompleteInlineCode guard to handleIncompleteSingleUnderscoreItalic

* chore: add changeset for inline code emphasis fix

---------

Co-authored-by: Dmitrii Troitskii <jsleitor@gmail.com>
2026-03-03 13:09:08 -08:00
streamdown-github-app[bot] b46781c928 Version Packages (#397)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-19 08:39:50 -08:00
Hayden Bleasel 1102f1855e Fix all Biome lint and formatting errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 20:57:01 -08:00
Hayden Bleasel 1a63c1242a remend: 100% test coverage
Remove dead code (isAsteriskListMarker, redundant isWithinCodeBlock
checks, unreachable fallbacks) and replace defensive patterns (|| [],
?? defaults) with non-null assertions where invariants guarantee
safety. Add coverage-gaps test suite covering edge cases in emphasis,
link, strikethrough, HTML tag, math block, and horizontal rule handlers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 20:11:06 -08:00
Hayden Bleasel 6374fbf56f Fix mermaid asterisk bug 2026-02-18 11:16:29 -08:00
Dmitrii 61c251b5ac fix(remend): don't treat underscores inside HTML tags as emphasis (#400)
When processing HTML like `<a target="_blank">`, the underscore in
`_blank` was being counted as an unclosed emphasis marker, causing
remend to append a trailing `_` to close it.

Added `isWithinHtmlTag()` check to `shouldSkipUnderscore()` — if the
underscore is between `<` and `>` of an HTML tag, it's skipped for
emphasis counting.

Fixes #385

Co-authored-by: Shurik <shurik@openclaw.ai>
2026-02-17 15:46:09 -08:00
streamdown-github-app[bot] c9a392ecdd Version Packages (#361)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-09 09:29:28 -08:00
Hayden Bleasel 3e6a77d0ae Resolves #50 2026-02-08 14:56:37 -08:00
Hayden Bleasel 5a8f6e873a Run Ultracite 2026-02-07 17:17:08 -08:00
Hayden Bleasel 4fffb9f96a Resolves #376 2026-02-07 16:52:15 -08:00
Hayden Bleasel c347b53fea Resolves #370 2026-02-07 16:49:12 -08:00
Hayden Bleasel 6b42a859ed Resolves #378 2026-02-07 16:44:06 -08:00
streamdown-github-app[bot] c2337f06d7 Version Packages (#353)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-18 21:07:35 -08:00
Hayden Bleasel 583dafc656 Fix tests, lint repo 2026-01-17 18:11:40 -08:00
Hayden Bleasel 61437ba02a Update index.ts 2026-01-17 17:01:49 -08:00
Hayden Bleasel add8edaeab Resolves #301 2026-01-17 16:59:58 -08:00
Hayden Bleasel 19dae64c01 Resolves #313 2026-01-17 15:47:48 -08:00
Hayden Bleasel a16d4749e2 Fix formatting 2026-01-17 15:32:54 -08:00
Hayden Bleasel 337625516c Resolves #332 2026-01-17 15:06:24 -08:00
Hayden Bleasel 1d4a3c745e Resolves #345 2026-01-17 14:50:00 -08:00
streamdown-github-app[bot] 5948920433 Version Packages (#285)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-11 20:42:39 -08:00
Hayden Bleasel 010c1b3132 Full fixes 2026-01-09 14:26:43 -08:00
Hayden Bleasel fa4958e419 Cut canary release 2026-01-06 13:41:53 -08:00
Hayden Bleasel 104798e8ac Resolves #303 2025-12-11 10:38:37 -08:00
Hayden Bleasel b8c8c79639 302 various completion issues (#307)
* Fix issue 1

* Fix issue 3

* Fix issue 4

* Fix issue 2

* Create hungry-jars-search.md

* Update package.json

* Fix lint / format issues

* Update hungry-jars-search.md
2025-12-11 10:31:47 -08:00
Hayden Bleasel 217b128373 Resolves #300 2025-12-11 09:43:44 -08:00
Hua d708864899 fix: skip asterisks inside math blocks in remend (#306)
* fix: skip asterisks inside math blocks in remend

* chore: add changeset for remend asterisk fix
2025-12-10 22:06:52 -08:00
Hayden Bleasel 6286df7ae7 Fix cognitive complexity lint issue 2025-12-07 22:19:12 -08:00
Hayden Bleasel 9dd9fa67e0 Resolves #296 2025-12-07 22:11:06 -08:00
Hayden Bleasel e0fa5756eb Ultracite fixes 2025-12-07 10:08:35 -08:00
Hayden Bleasel 6769e7a629 Fix trailing space issues 2025-12-07 09:55:21 -08:00
Hayden Bleasel 8f3e0ede4b Run fix 2025-12-06 23:35:51 -08:00
Hayden Bleasel 73c3b61bdd Bump deps 2025-12-06 23:34:57 -08:00
Hayden Bleasel 68109f2ab7 Fix setext heading issues 2025-12-06 22:34:40 -08:00
Hayden Bleasel 45f0f4dbcb Improve support for horizontal rules 2025-12-06 22:04:29 -08:00
Hayden Bleasel e7eca5118f Resolves #265 2025-12-04 18:05:24 -08:00