tiptap-markdown-react 0.8.2 → 0.8.3

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.
package/dist/style.css CHANGED
@@ -532,7 +532,7 @@
532
532
  color: #22863a;
533
533
  }
534
534
  /* 顶部操作栏:横跨宽度、内容居中、细线灰图标。配色映射到可覆盖的 --tmr-* 变量。 */
535
- ._toolbar_16b09_2 {
535
+ ._toolbar_w3tos_2 {
536
536
  --sb-accent: var(--tmr-accent, #ff6719);
537
537
  --sb-text: var(--tmr-text, #363737);
538
538
  --sb-muted: var(--tmr-toolbar-muted, #6b6b6b);
@@ -545,7 +545,7 @@
545
545
  z-index: 8;
546
546
  }
547
547
 
548
- ._inner_16b09_15 {
548
+ ._inner_w3tos_15 {
549
549
  display: flex;
550
550
  align-items: center;
551
551
  justify-content: safe center;
@@ -557,7 +557,7 @@
557
557
  overflow-x: auto;
558
558
  }
559
559
 
560
- ._btn_16b09_27 {
560
+ ._btn_w3tos_27 {
561
561
  display: inline-flex;
562
562
  align-items: center;
563
563
  justify-content: center;
@@ -575,28 +575,28 @@
575
575
  transition: background 0.15s, color 0.15s;
576
576
  }
577
577
 
578
- ._btn_16b09_27:hover:not(:disabled) {
578
+ ._btn_w3tos_27:hover:not(:disabled) {
579
579
  background: #f3f3f3;
580
580
  color: var(--sb-text);
581
581
  }
582
582
 
583
- ._btnActive_16b09_50 {
583
+ ._btnActive_w3tos_50 {
584
584
  color: var(--sb-accent);
585
585
  background: #fff3ec;
586
586
  }
587
587
 
588
- ._btnActive_16b09_50:hover {
588
+ ._btnActive_w3tos_50:hover {
589
589
  color: var(--sb-accent);
590
590
  background: #ffe8da;
591
591
  }
592
592
 
593
- ._btn_16b09_27:disabled {
593
+ ._btn_w3tos_27:disabled {
594
594
  opacity: 0.3;
595
595
  cursor: not-allowed;
596
596
  }
597
597
 
598
598
  /* 表内浮动工具条(BubbleMenu portal 到 body,拿不到 .toolbar 变量,故写死配色) */
599
- ._tableBubble_16b09_66 {
599
+ ._tableBubble_w3tos_66 {
600
600
  display: flex;
601
601
  align-items: center;
602
602
  gap: 2px;
@@ -608,7 +608,7 @@
608
608
  }
609
609
 
610
610
  /* 文字型图标(引用等) */
611
- ._txtIcon_16b09_78 {
611
+ ._txtIcon_w3tos_78 {
612
612
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
613
613
  font-size: 16px;
614
614
  font-weight: 600;
@@ -616,7 +616,7 @@
616
616
  }
617
617
 
618
618
  /* 文字颜色 / 高亮图标:字母 + 底部当前色条 */
619
- ._colorIcon_16b09_86 {
619
+ ._colorIcon_w3tos_86 {
620
620
  display: inline-flex;
621
621
  flex-direction: column;
622
622
  align-items: center;
@@ -624,20 +624,20 @@
624
624
  line-height: 1;
625
625
  }
626
626
 
627
- ._colorIconGlyph_16b09_94 {
627
+ ._colorIconGlyph_w3tos_94 {
628
628
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
629
629
  font-size: 15px;
630
630
  font-weight: 600;
631
631
  }
632
632
 
633
- ._colorIconBar_16b09_100 {
633
+ ._colorIconBar_w3tos_100 {
634
634
  width: 16px;
635
635
  height: 3px;
636
636
  border-radius: 1.5px;
637
637
  }
638
638
 
639
639
  /* A▾ 上标/下标下拉触发器 */
640
- ._scriptTrigger_16b09_107 {
640
+ ._scriptTrigger_w3tos_107 {
641
641
  display: inline-flex;
642
642
  align-items: center;
643
643
  gap: 3px;
@@ -652,12 +652,12 @@
652
652
  transition: background 0.15s, color 0.15s;
653
653
  }
654
654
 
655
- ._scriptTrigger_16b09_107:hover {
655
+ ._scriptTrigger_w3tos_107:hover {
656
656
  background: #f3f3f3;
657
657
  color: var(--sb-text);
658
658
  }
659
659
 
660
- ._scriptTriggerGlyph_16b09_127 {
660
+ ._scriptTriggerGlyph_w3tos_127 {
661
661
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
662
662
  font-size: 16px;
663
663
  font-weight: 600;
@@ -665,7 +665,7 @@
665
665
  text-underline-offset: 2px;
666
666
  }
667
667
 
668
- ._divider_16b09_135 {
668
+ ._divider_w3tos_135 {
669
669
  width: 1px;
670
670
  height: 20px;
671
671
  margin: 0 8px;
@@ -674,7 +674,7 @@
674
674
  }
675
675
 
676
676
  /* ── Style / Size / More 下拉触发器 ── */
677
- ._styleTrigger_16b09_144 {
677
+ ._styleTrigger_w3tos_144 {
678
678
  display: inline-flex;
679
679
  align-items: center;
680
680
  justify-content: space-between;
@@ -694,16 +694,16 @@
694
694
  transition: background 0.15s;
695
695
  }
696
696
 
697
- ._styleTrigger_16b09_144:hover:not(:disabled) {
697
+ ._styleTrigger_w3tos_144:hover:not(:disabled) {
698
698
  background: #f3f3f3;
699
699
  }
700
700
 
701
- ._styleTrigger_16b09_144:disabled {
701
+ ._styleTrigger_w3tos_144:disabled {
702
702
  opacity: 0.3;
703
703
  cursor: not-allowed;
704
704
  }
705
705
 
706
- ._styleTriggerLabel_16b09_173 {
706
+ ._styleTriggerLabel_w3tos_173 {
707
707
  flex: 1;
708
708
  text-align: left;
709
709
  overflow: hidden;
@@ -711,19 +711,19 @@
711
711
  text-overflow: ellipsis;
712
712
  }
713
713
 
714
- ._styleTriggerCaret_16b09_181 {
714
+ ._styleTriggerCaret_w3tos_181 {
715
715
  color: var(--sb-muted);
716
716
  flex: none;
717
717
  }
718
718
 
719
719
  /* 下拉项:图标 + 文字 */
720
- ._styleItem_16b09_187 {
720
+ ._styleItem_w3tos_187 {
721
721
  display: inline-flex;
722
722
  align-items: center;
723
723
  gap: 12px;
724
724
  }
725
725
 
726
- ._styleIcon_16b09_193 {
726
+ ._styleIcon_w3tos_193 {
727
727
  display: inline-flex;
728
728
  justify-content: center;
729
729
  align-items: center;
@@ -733,19 +733,19 @@
733
733
  }
734
734
 
735
735
  /* 上标 / 下标图标 */
736
- ._scriptGlyph_16b09_203 {
736
+ ._scriptGlyph_w3tos_203 {
737
737
  display: inline-block;
738
738
  text-align: center;
739
739
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
740
740
  }
741
741
 
742
- ._scriptGlyph_16b09_203 sup,
743
- ._scriptGlyph_16b09_203 sub {
742
+ ._scriptGlyph_w3tos_203 sup,
743
+ ._scriptGlyph_w3tos_203 sub {
744
744
  font-size: 0.7em;
745
745
  }
746
746
 
747
747
  /* ── Radix 下拉菜单面板(替代 antd .ant-dropdown-menu) ── */
748
- ._menu_16b09_215 {
748
+ ._menu_w3tos_215 {
749
749
  min-width: 200px;
750
750
  padding: 6px;
751
751
  background: #fff;
@@ -756,7 +756,7 @@
756
756
  z-index: 1000;
757
757
  }
758
758
 
759
- ._menuItem_16b09_226 {
759
+ ._menuItem_w3tos_226 {
760
760
  display: flex;
761
761
  align-items: center;
762
762
  width: 100%;
@@ -772,52 +772,52 @@
772
772
  outline: none;
773
773
  }
774
774
 
775
- ._menuItem_16b09_226:hover:not(:disabled) {
775
+ ._menuItem_w3tos_226:hover:not(:disabled) {
776
776
  background: #f3f3f3;
777
777
  }
778
778
 
779
- ._menuItem_16b09_226:disabled {
779
+ ._menuItem_w3tos_226:disabled {
780
780
  opacity: 0.35;
781
781
  cursor: not-allowed;
782
782
  }
783
783
 
784
784
  /* 选中态:品牌色高亮 */
785
- ._menuItemSelected_16b09_252 {
785
+ ._menuItemSelected_w3tos_252 {
786
786
  background: #fff3ec;
787
787
  color: var(--sb-accent);
788
788
  }
789
789
 
790
- ._menuItemSelected_16b09_252 ._styleIcon_16b09_193 {
790
+ ._menuItemSelected_w3tos_252 ._styleIcon_w3tos_193 {
791
791
  color: var(--sb-accent);
792
792
  }
793
793
 
794
- ._menuItemSelected_16b09_252:hover:not(:disabled) {
794
+ ._menuItemSelected_w3tos_252:hover:not(:disabled) {
795
795
  background: #ffe8da;
796
796
  }
797
797
 
798
798
  /* Radix Popover 内容(承载 ColorPalette),面板自带阴影,这里只兜底 z-index */
799
- ._popoverContent_16b09_266 {
799
+ ._popoverContent_w3tos_266 {
800
800
  z-index: 1000;
801
801
  }
802
802
 
803
- ._mathLayer_16b09_270 {
803
+ ._mathLayer_w3tos_270 {
804
804
  position: absolute;
805
805
  z-index: 6;
806
806
  }
807
807
 
808
- ._mathStack_16b09_275 {
808
+ ._mathStack_w3tos_275 {
809
809
  display: flex;
810
810
  flex-direction: column;
811
811
  align-items: flex-start;
812
812
  gap: 8px;
813
813
  }
814
814
 
815
- ._mathStackBlock_16b09_282 {
815
+ ._mathStackBlock_w3tos_282 {
816
816
  align-items: stretch;
817
817
  width: 100%;
818
818
  }
819
819
 
820
- ._mathHint_16b09_287 {
820
+ ._mathHint_w3tos_287 {
821
821
  display: inline-flex;
822
822
  align-items: center;
823
823
  gap: 6px;
@@ -829,19 +829,19 @@
829
829
  line-height: 1.4;
830
830
  }
831
831
 
832
- ._mathHintBlock_16b09_299 {
832
+ ._mathHintBlock_w3tos_299 {
833
833
  width: 100%;
834
834
  padding: 10px 14px;
835
835
  border-radius: 8px;
836
836
  }
837
837
 
838
- ._mathHintIcon_16b09_305 {
838
+ ._mathHintIcon_w3tos_305 {
839
839
  font-family: ui-serif, Georgia, 'Times New Roman', serif;
840
840
  font-size: 12px;
841
841
  opacity: 0.85;
842
842
  }
843
843
 
844
- ._mathPreviewInline_16b09_311 {
844
+ ._mathPreviewInline_w3tos_311 {
845
845
  display: inline-flex;
846
846
  max-width: min(440px, calc(100vw - 24px));
847
847
  padding: 4px 10px;
@@ -849,9 +849,25 @@
849
849
  border-radius: 6px;
850
850
  background: #fff3ec;
851
851
  color: var(--tmr-text, #363737);
852
+ /* KaTeX 1.21em 相对此字号;默认对齐 .editorContent,标题内公式由节点 computed size 覆盖 */
853
+ font-family: var(
854
+ --tmr-body-font,
855
+ Spectral,
856
+ serif,
857
+ system-ui,
858
+ -apple-system,
859
+ BlinkMacSystemFont,
860
+ 'Segoe UI',
861
+ Roboto,
862
+ Helvetica,
863
+ Arial,
864
+ sans-serif
865
+ );
866
+ font-size: var(--tmr-font-size, 19px);
867
+ line-height: 1;
852
868
  }
853
869
 
854
- ._mathPreviewBlock_16b09_321 {
870
+ ._mathPreviewBlock_w3tos_337 {
855
871
  width: 100%;
856
872
  min-height: 48px;
857
873
  padding: 14px 16px;
@@ -860,13 +876,28 @@
860
876
  background: var(--tmr-code-bg, #f4f4f4);
861
877
  text-align: center;
862
878
  color: var(--tmr-text, #363737);
879
+ font-family: var(
880
+ --tmr-body-font,
881
+ Spectral,
882
+ serif,
883
+ system-ui,
884
+ -apple-system,
885
+ BlinkMacSystemFont,
886
+ 'Segoe UI',
887
+ Roboto,
888
+ Helvetica,
889
+ Arial,
890
+ sans-serif
891
+ );
892
+ font-size: var(--tmr-font-size, 19px);
893
+ line-height: 1;
863
894
  }
864
895
 
865
- ._mathPreviewBlock_16b09_321 .katex-display {
896
+ ._mathPreviewBlock_w3tos_337 .katex-display {
866
897
  margin: 0;
867
898
  }
868
899
 
869
- ._mathField_16b09_336 {
900
+ ._mathField_w3tos_367 {
870
901
  display: flex;
871
902
  align-items: center;
872
903
  gap: 8px;
@@ -878,14 +909,14 @@
878
909
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
879
910
  }
880
911
 
881
- ._mathFieldBlock_16b09_348 {
912
+ ._mathFieldBlock_w3tos_379 {
882
913
  align-items: flex-start;
883
914
  width: 100%;
884
915
  border-radius: 12px;
885
916
  padding: 10px 10px 10px 14px;
886
917
  }
887
918
 
888
- ._mathInput_16b09_355 {
919
+ ._mathInput_w3tos_386 {
889
920
  flex: 1;
890
921
  min-width: 0;
891
922
  margin: 0;
@@ -899,11 +930,11 @@
899
930
  resize: none;
900
931
  }
901
932
 
902
- ._mathInput_16b09_355:focus {
933
+ ._mathInput_w3tos_386:focus {
903
934
  outline: none;
904
935
  }
905
936
 
906
- ._mathDone_16b09_373 {
937
+ ._mathDone_w3tos_404 {
907
938
  display: inline-flex;
908
939
  align-items: center;
909
940
  gap: 4px;
@@ -919,16 +950,16 @@
919
950
  cursor: pointer;
920
951
  }
921
952
 
922
- ._mathDone_16b09_373:hover:not(:disabled) {
953
+ ._mathDone_w3tos_404:hover:not(:disabled) {
923
954
  filter: brightness(0.95);
924
955
  }
925
956
 
926
- ._mathDone_16b09_373:disabled {
957
+ ._mathDone_w3tos_404:disabled {
927
958
  opacity: 0.35;
928
959
  cursor: not-allowed;
929
960
  }
930
961
 
931
- ._mathDoneKbd_16b09_398 {
962
+ ._mathDoneKbd_w3tos_429 {
932
963
  font-size: 11px;
933
964
  font-weight: 500;
934
965
  opacity: 0.85;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiptap-markdown-react",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "A batteries-included, self-styled Markdown WYSIWYG editor and reader suite built on Tiptap v3. Markdown in/out, SSR/static rendering, table of contents, themeable via CSS variables, zero Ant Design.",
5
5
  "type": "module",
6
6
  "license": "MIT",