@pep/term-deck 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -709,9 +709,24 @@ function processCodeBlocks(content) {
709
709
  return [top, ...boxedLines, bottom].join("\n");
710
710
  });
711
711
  }
712
+ function processMarkdownInline(content) {
713
+ let result = content;
714
+ result = result.replace(/\*\*([^*]+)\*\*/g, "{bold}$1{/bold}");
715
+ result = result.replace(/__([^_]+)__/g, "{bold}$1{/bold}");
716
+ result = result.replace(/(?<![*\w])\*([^*]+)\*(?![*\w])/g, "{light-black-fg}$1{/light-black-fg}");
717
+ result = result.replace(/(?<![_\w])_([^_]+)_(?![_\w])/g, "{light-black-fg}$1{/light-black-fg}");
718
+ result = result.replace(/`([^`]+)`/g, "{inverse} $1 {/inverse}");
719
+ result = result.replace(/~~([^~]+)~~/g, "{strikethrough}$1{/strikethrough}");
720
+ result = result.replace(/^(#{1,6})\s+(.+)$/gm, "{bold}$2{/bold}");
721
+ result = result.replace(/^[-*_]{3,}$/gm, "\u2500".repeat(40));
722
+ result = result.replace(/^[\s]*[-*+]\s+/gm, " \u2022 ");
723
+ result = result.replace(/^[\s]*(\d+)\.\s+/gm, " $1. ");
724
+ return result;
725
+ }
712
726
  async function processSlideContent(body, theme) {
713
727
  let processed = processMermaidDiagrams(body);
714
728
  processed = processCodeBlocks(processed);
729
+ processed = processMarkdownInline(processed);
715
730
  processed = colorTokensToBlessedTags(processed, theme);
716
731
  return processed;
717
732
  }
@@ -3684,7 +3699,7 @@ var init_main = __esm({
3684
3699
  init_esm_shims();
3685
3700
 
3686
3701
  // package.json
3687
- var version = "1.2.1";
3702
+ var version = "1.2.2";
3688
3703
 
3689
3704
  // src/cli/commands/present.ts
3690
3705
  init_esm_shims();