tiptap-markdown-react 0.19.0 → 0.19.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.
package/dist/index.js CHANGED
@@ -3343,45 +3343,45 @@ function splitTopLevelBlocks(markdown) {
3343
3343
  function stripToPlainText(markdown) {
3344
3344
  return markdown.replace(/!\[[^\]]*\]\([^)]+\)/g, "").replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/^#{1,6}\s+/gm, "").replace(/^[ \t]*[-*+]\s+/gm, "").replace(/^[ \t]*\d+\.\s+/gm, "").replace(/[*_~`]+/g, "").replace(/<[^>]+>/g, "").replace(/\|/g, " ").replace(/\s+/g, " ").trim();
3345
3345
  }
3346
- const toolbar = "_toolbar_vghdk_2";
3347
- const inner = "_inner_vghdk_15";
3348
- const btn$2 = "_btn_vghdk_35";
3349
- const btnActive$1 = "_btnActive_vghdk_58";
3350
- const txtIcon = "_txtIcon_vghdk_74";
3351
- const colorIcon = "_colorIcon_vghdk_82";
3352
- const colorIconGlyph = "_colorIconGlyph_vghdk_90";
3353
- const colorIconBar = "_colorIconBar_vghdk_96";
3354
- const scriptTrigger = "_scriptTrigger_vghdk_103";
3355
- const scriptTriggerGlyph = "_scriptTriggerGlyph_vghdk_123";
3356
- const divider$2 = "_divider_vghdk_131";
3357
- const styleTrigger = "_styleTrigger_vghdk_140";
3358
- const styleTriggerLabel = "_styleTriggerLabel_vghdk_169";
3359
- const styleTriggerCaret = "_styleTriggerCaret_vghdk_177";
3360
- const iconTrigger = "_iconTrigger_vghdk_184";
3361
- const styleItem = "_styleItem_vghdk_192";
3362
- const styleIcon = "_styleIcon_vghdk_198";
3363
- const scriptGlyph = "_scriptGlyph_vghdk_208";
3364
- const menu = "_menu_vghdk_220";
3365
- const menuItem = "_menuItem_vghdk_231";
3366
- const menuItemSelected = "_menuItemSelected_vghdk_258";
3367
- const tableInsertCaret = "_tableInsertCaret_vghdk_271";
3368
- const tableSizePicker = "_tableSizePicker_vghdk_279";
3369
- const tableSizeGrid = "_tableSizeGrid_vghdk_289";
3370
- const tableSizeCell = "_tableSizeCell_vghdk_294";
3371
- const tableSizeCellActive = "_tableSizeCellActive_vghdk_304";
3372
- const tableSizeLabel = "_tableSizeLabel_vghdk_309";
3373
- const popoverContent$1 = "_popoverContent_vghdk_318";
3374
- const mathLayer = "_mathLayer_vghdk_322";
3375
- const mathStack = "_mathStack_vghdk_327";
3376
- const mathStackBlock = "_mathStackBlock_vghdk_334";
3377
- const mathHint = "_mathHint_vghdk_339";
3378
- const mathHintBlock = "_mathHintBlock_vghdk_351";
3379
- const mathHintIcon = "_mathHintIcon_vghdk_357";
3380
- const mathField = "_mathField_vghdk_388";
3381
- const mathFieldBlock = "_mathFieldBlock_vghdk_400";
3382
- const mathInput = "_mathInput_vghdk_407";
3383
- const mathDone = "_mathDone_vghdk_425";
3384
- const mathDoneKbd = "_mathDoneKbd_vghdk_450";
3346
+ const toolbar = "_toolbar_fvk6u_2";
3347
+ const inner = "_inner_fvk6u_15";
3348
+ const btn$2 = "_btn_fvk6u_35";
3349
+ const btnActive$1 = "_btnActive_fvk6u_58";
3350
+ const txtIcon = "_txtIcon_fvk6u_74";
3351
+ const colorIcon = "_colorIcon_fvk6u_82";
3352
+ const colorIconGlyph = "_colorIconGlyph_fvk6u_90";
3353
+ const colorIconBar = "_colorIconBar_fvk6u_96";
3354
+ const scriptTrigger = "_scriptTrigger_fvk6u_103";
3355
+ const scriptTriggerGlyph = "_scriptTriggerGlyph_fvk6u_123";
3356
+ const divider$2 = "_divider_fvk6u_131";
3357
+ const styleTrigger = "_styleTrigger_fvk6u_140";
3358
+ const styleTriggerLabel = "_styleTriggerLabel_fvk6u_174";
3359
+ const styleTriggerCaret = "_styleTriggerCaret_fvk6u_183";
3360
+ const iconTrigger = "_iconTrigger_fvk6u_190";
3361
+ const styleItem = "_styleItem_fvk6u_198";
3362
+ const styleIcon = "_styleIcon_fvk6u_204";
3363
+ const scriptGlyph = "_scriptGlyph_fvk6u_214";
3364
+ const menu = "_menu_fvk6u_226";
3365
+ const menuItem = "_menuItem_fvk6u_237";
3366
+ const menuItemSelected = "_menuItemSelected_fvk6u_264";
3367
+ const tableInsertCaret = "_tableInsertCaret_fvk6u_277";
3368
+ const tableSizePicker = "_tableSizePicker_fvk6u_285";
3369
+ const tableSizeGrid = "_tableSizeGrid_fvk6u_295";
3370
+ const tableSizeCell = "_tableSizeCell_fvk6u_300";
3371
+ const tableSizeCellActive = "_tableSizeCellActive_fvk6u_310";
3372
+ const tableSizeLabel = "_tableSizeLabel_fvk6u_315";
3373
+ const popoverContent$1 = "_popoverContent_fvk6u_324";
3374
+ const mathLayer = "_mathLayer_fvk6u_328";
3375
+ const mathStack = "_mathStack_fvk6u_333";
3376
+ const mathStackBlock = "_mathStackBlock_fvk6u_340";
3377
+ const mathHint = "_mathHint_fvk6u_345";
3378
+ const mathHintBlock = "_mathHintBlock_fvk6u_357";
3379
+ const mathHintIcon = "_mathHintIcon_fvk6u_363";
3380
+ const mathField = "_mathField_fvk6u_394";
3381
+ const mathFieldBlock = "_mathFieldBlock_fvk6u_406";
3382
+ const mathInput = "_mathInput_fvk6u_413";
3383
+ const mathDone = "_mathDone_fvk6u_431";
3384
+ const mathDoneKbd = "_mathDoneKbd_fvk6u_456";
3385
3385
  const styles$6 = {
3386
3386
  toolbar,
3387
3387
  inner,
@@ -1808,7 +1808,7 @@ table.tmr-pending-anchor {
1808
1808
  color: #22863a;
1809
1809
  }
1810
1810
  /* 顶部操作栏:横跨宽度、内容居中、细线灰图标。配色映射到可覆盖的 --tmr-* 变量。 */
1811
- ._toolbar_vghdk_2 {
1811
+ ._toolbar_fvk6u_2 {
1812
1812
  --sb-accent: var(--tmr-accent, #ff6719);
1813
1813
  --sb-text: var(--tmr-text, #363737);
1814
1814
  --sb-muted: var(--tmr-toolbar-muted, #6b6b6b);
@@ -1821,7 +1821,7 @@ table.tmr-pending-anchor {
1821
1821
  z-index: 8;
1822
1822
  }
1823
1823
 
1824
- ._inner_vghdk_15 {
1824
+ ._inner_fvk6u_15 {
1825
1825
  display: flex;
1826
1826
  align-items: center;
1827
1827
  /* 溢出时 `safe` 让居中回退为起点对齐——否则两端内容会被裁掉且滚不到头 */
@@ -1837,11 +1837,11 @@ table.tmr-pending-anchor {
1837
1837
  }
1838
1838
 
1839
1839
  /* 单行 + 溢出滚动时不允许把控件压扁(各控件本来就该保持自身宽度) */
1840
- ._inner_vghdk_15 > * {
1840
+ ._inner_fvk6u_15 > * {
1841
1841
  flex-shrink: 0;
1842
1842
  }
1843
1843
 
1844
- ._btn_vghdk_35 {
1844
+ ._btn_fvk6u_35 {
1845
1845
  display: inline-flex;
1846
1846
  align-items: center;
1847
1847
  justify-content: center;
@@ -1859,28 +1859,28 @@ table.tmr-pending-anchor {
1859
1859
  transition: background 0.15s, color 0.15s;
1860
1860
  }
1861
1861
 
1862
- ._btn_vghdk_35:hover:not(:disabled) {
1862
+ ._btn_fvk6u_35:hover:not(:disabled) {
1863
1863
  background: #f3f3f3;
1864
1864
  color: var(--sb-text);
1865
1865
  }
1866
1866
 
1867
- ._btnActive_vghdk_58 {
1867
+ ._btnActive_fvk6u_58 {
1868
1868
  color: var(--sb-accent);
1869
1869
  background: #fff3ec;
1870
1870
  }
1871
1871
 
1872
- ._btnActive_vghdk_58:hover {
1872
+ ._btnActive_fvk6u_58:hover {
1873
1873
  color: var(--sb-accent);
1874
1874
  background: #ffe8da;
1875
1875
  }
1876
1876
 
1877
- ._btn_vghdk_35:disabled {
1877
+ ._btn_fvk6u_35:disabled {
1878
1878
  opacity: 0.3;
1879
1879
  cursor: not-allowed;
1880
1880
  }
1881
1881
 
1882
1882
  /* 文字型图标(引用等) */
1883
- ._txtIcon_vghdk_74 {
1883
+ ._txtIcon_fvk6u_74 {
1884
1884
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
1885
1885
  font-size: 16px;
1886
1886
  font-weight: 600;
@@ -1888,7 +1888,7 @@ table.tmr-pending-anchor {
1888
1888
  }
1889
1889
 
1890
1890
  /* 文字颜色 / 高亮图标:字母 + 底部当前色条 */
1891
- ._colorIcon_vghdk_82 {
1891
+ ._colorIcon_fvk6u_82 {
1892
1892
  display: inline-flex;
1893
1893
  flex-direction: column;
1894
1894
  align-items: center;
@@ -1896,20 +1896,20 @@ table.tmr-pending-anchor {
1896
1896
  line-height: 1;
1897
1897
  }
1898
1898
 
1899
- ._colorIconGlyph_vghdk_90 {
1899
+ ._colorIconGlyph_fvk6u_90 {
1900
1900
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
1901
1901
  font-size: 15px;
1902
1902
  font-weight: 600;
1903
1903
  }
1904
1904
 
1905
- ._colorIconBar_vghdk_96 {
1905
+ ._colorIconBar_fvk6u_96 {
1906
1906
  width: 16px;
1907
1907
  height: 3px;
1908
1908
  border-radius: 1.5px;
1909
1909
  }
1910
1910
 
1911
1911
  /* A▾ 上标/下标下拉触发器 */
1912
- ._scriptTrigger_vghdk_103 {
1912
+ ._scriptTrigger_fvk6u_103 {
1913
1913
  display: inline-flex;
1914
1914
  align-items: center;
1915
1915
  gap: 3px;
@@ -1924,12 +1924,12 @@ table.tmr-pending-anchor {
1924
1924
  transition: background 0.15s, color 0.15s;
1925
1925
  }
1926
1926
 
1927
- ._scriptTrigger_vghdk_103:hover {
1927
+ ._scriptTrigger_fvk6u_103:hover {
1928
1928
  background: #f3f3f3;
1929
1929
  color: var(--sb-text);
1930
1930
  }
1931
1931
 
1932
- ._scriptTriggerGlyph_vghdk_123 {
1932
+ ._scriptTriggerGlyph_fvk6u_123 {
1933
1933
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
1934
1934
  font-size: 16px;
1935
1935
  font-weight: 600;
@@ -1937,7 +1937,7 @@ table.tmr-pending-anchor {
1937
1937
  text-underline-offset: 2px;
1938
1938
  }
1939
1939
 
1940
- ._divider_vghdk_131 {
1940
+ ._divider_fvk6u_131 {
1941
1941
  width: 1px;
1942
1942
  height: 20px;
1943
1943
  margin: 0 8px;
@@ -1946,14 +1946,19 @@ table.tmr-pending-anchor {
1946
1946
  }
1947
1947
 
1948
1948
  /* ── Style / Size / More 下拉触发器 ── */
1949
- ._styleTrigger_vghdk_140 {
1949
+ ._styleTrigger_fvk6u_140 {
1950
1950
  display: inline-flex;
1951
1951
  align-items: center;
1952
- justify-content: space-between;
1953
- gap: 6px;
1954
- width: 76px;
1952
+ /* 紧凑口径:宽随文案、文字与箭头只隔 4px。旧版固定 76px + space-between 会把二者
1953
+ 拉开到 ~17px,且四枚固定宽把工具栏内层(max-width: 1100px)恒定撑出 40px 溢出,
1954
+ 末端「更多」的箭头被裁在滚动容器可视区外(2026-10-10 用户反馈)。
1955
+ max-width 兜住长文案:最宽不超过旧的固定宽。 */
1956
+ justify-content: flex-start;
1957
+ gap: 4px;
1958
+ width: auto;
1959
+ max-width: 76px;
1955
1960
  height: 34px;
1956
- padding: 0 10px;
1961
+ padding: 0 6px;
1957
1962
  border: none;
1958
1963
  border-radius: 6px;
1959
1964
  background: transparent;
@@ -1966,31 +1971,32 @@ table.tmr-pending-anchor {
1966
1971
  transition: background 0.15s;
1967
1972
  }
1968
1973
 
1969
- ._styleTrigger_vghdk_140:hover:not(:disabled) {
1974
+ ._styleTrigger_fvk6u_140:hover:not(:disabled) {
1970
1975
  background: #f3f3f3;
1971
1976
  }
1972
1977
 
1973
- ._styleTrigger_vghdk_140:disabled {
1978
+ ._styleTrigger_fvk6u_140:disabled {
1974
1979
  opacity: 0.3;
1975
1980
  cursor: not-allowed;
1976
1981
  }
1977
1982
 
1978
- ._styleTriggerLabel_vghdk_169 {
1979
- flex: 1;
1983
+ ._styleTriggerLabel_fvk6u_174 {
1984
+ /* 不吃满空档:文字与箭头的间距完全由 gap 决定(flex: 1 会把空档塞在两者之间) */
1985
+ flex: 0 1 auto;
1980
1986
  text-align: left;
1981
1987
  overflow: hidden;
1982
1988
  white-space: nowrap;
1983
1989
  text-overflow: ellipsis;
1984
1990
  }
1985
1991
 
1986
- ._styleTriggerCaret_vghdk_177 {
1992
+ ._styleTriggerCaret_fvk6u_183 {
1987
1993
  color: var(--sb-muted);
1988
1994
  flex: none;
1989
1995
  }
1990
1996
 
1991
- /* 图标型触发器(对齐 / 缩进 / 行高,与 .styleTrigger 合用):Style / FontSize 那套是给
1992
- 「文字 + 箭头」的——固定 76px 宽 + space-between,套在图标上会把图标与箭头撑到两端。 */
1993
- ._iconTrigger_vghdk_184 {
1997
+ /* 图标型触发器(对齐 / 缩进 / 行高,与 .styleTrigger 合用):基础类是给「文字 + 箭头」的,
1998
+ 图标型只需「图标 + 箭头」贴紧并居中——宽度随内容、间距再收一档。 */
1999
+ ._iconTrigger_fvk6u_190 {
1994
2000
  width: auto;
1995
2001
  justify-content: center;
1996
2002
  gap: 2px;
@@ -1998,13 +2004,13 @@ table.tmr-pending-anchor {
1998
2004
  }
1999
2005
 
2000
2006
  /* 下拉项:图标 + 文字 */
2001
- ._styleItem_vghdk_192 {
2007
+ ._styleItem_fvk6u_198 {
2002
2008
  display: inline-flex;
2003
2009
  align-items: center;
2004
2010
  gap: 12px;
2005
2011
  }
2006
2012
 
2007
- ._styleIcon_vghdk_198 {
2013
+ ._styleIcon_fvk6u_204 {
2008
2014
  display: inline-flex;
2009
2015
  justify-content: center;
2010
2016
  align-items: center;
@@ -2014,19 +2020,19 @@ table.tmr-pending-anchor {
2014
2020
  }
2015
2021
 
2016
2022
  /* 上标 / 下标图标 */
2017
- ._scriptGlyph_vghdk_208 {
2023
+ ._scriptGlyph_fvk6u_214 {
2018
2024
  display: inline-block;
2019
2025
  text-align: center;
2020
2026
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
2021
2027
  }
2022
2028
 
2023
- ._scriptGlyph_vghdk_208 sup,
2024
- ._scriptGlyph_vghdk_208 sub {
2029
+ ._scriptGlyph_fvk6u_214 sup,
2030
+ ._scriptGlyph_fvk6u_214 sub {
2025
2031
  font-size: 0.7em;
2026
2032
  }
2027
2033
 
2028
2034
  /* ── Radix 下拉菜单面板 ── */
2029
- ._menu_vghdk_220 {
2035
+ ._menu_fvk6u_226 {
2030
2036
  min-width: 200px;
2031
2037
  padding: 6px;
2032
2038
  background: #fff;
@@ -2037,7 +2043,7 @@ table.tmr-pending-anchor {
2037
2043
  z-index: 1000;
2038
2044
  }
2039
2045
 
2040
- ._menuItem_vghdk_231 {
2046
+ ._menuItem_fvk6u_237 {
2041
2047
  display: flex;
2042
2048
  align-items: center;
2043
2049
  width: 100%;
@@ -2054,30 +2060,30 @@ table.tmr-pending-anchor {
2054
2060
  gap: 8px;
2055
2061
  }
2056
2062
 
2057
- ._menuItem_vghdk_231:hover:not(:disabled) {
2063
+ ._menuItem_fvk6u_237:hover:not(:disabled) {
2058
2064
  background: #f3f3f3;
2059
2065
  }
2060
2066
 
2061
- ._menuItem_vghdk_231:disabled {
2067
+ ._menuItem_fvk6u_237:disabled {
2062
2068
  opacity: 0.35;
2063
2069
  cursor: not-allowed;
2064
2070
  }
2065
2071
 
2066
2072
  /* 选中态:品牌色高亮 */
2067
- ._menuItemSelected_vghdk_258 {
2073
+ ._menuItemSelected_fvk6u_264 {
2068
2074
  background: #fff3ec;
2069
2075
  color: var(--sb-accent);
2070
2076
  }
2071
2077
 
2072
- ._menuItemSelected_vghdk_258 ._styleIcon_vghdk_198 {
2078
+ ._menuItemSelected_fvk6u_264 ._styleIcon_fvk6u_204 {
2073
2079
  color: var(--sb-accent);
2074
2080
  }
2075
2081
 
2076
- ._menuItemSelected_vghdk_258:hover:not(:disabled) {
2082
+ ._menuItemSelected_fvk6u_264:hover:not(:disabled) {
2077
2083
  background: #ffe8da;
2078
2084
  }
2079
2085
 
2080
- ._tableInsertCaret_vghdk_271 {
2086
+ ._tableInsertCaret_fvk6u_277 {
2081
2087
  margin-left: auto;
2082
2088
  color: var(--sb-muted);
2083
2089
  transform: rotate(-90deg);
@@ -2085,7 +2091,7 @@ table.tmr-pending-anchor {
2085
2091
  }
2086
2092
 
2087
2093
  /* 插入表格:行列网格选择器 */
2088
- ._tableSizePicker_vghdk_279 {
2094
+ ._tableSizePicker_fvk6u_285 {
2089
2095
  padding: 10px;
2090
2096
  background: #fff;
2091
2097
  border-radius: 10px;
@@ -2095,12 +2101,12 @@ table.tmr-pending-anchor {
2095
2101
  z-index: 1001;
2096
2102
  }
2097
2103
 
2098
- ._tableSizeGrid_vghdk_289 {
2104
+ ._tableSizeGrid_fvk6u_295 {
2099
2105
  display: grid;
2100
2106
  gap: 3px;
2101
2107
  }
2102
2108
 
2103
- ._tableSizeCell_vghdk_294 {
2109
+ ._tableSizeCell_fvk6u_300 {
2104
2110
  width: 16px;
2105
2111
  height: 16px;
2106
2112
  padding: 0;
@@ -2110,12 +2116,12 @@ table.tmr-pending-anchor {
2110
2116
  cursor: pointer;
2111
2117
  }
2112
2118
 
2113
- ._tableSizeCellActive_vghdk_304 {
2119
+ ._tableSizeCellActive_fvk6u_310 {
2114
2120
  border-color: var(--tmr-accent, #ff6719);
2115
2121
  background: #fff3ec;
2116
2122
  }
2117
2123
 
2118
- ._tableSizeLabel_vghdk_309 {
2124
+ ._tableSizeLabel_fvk6u_315 {
2119
2125
  margin-top: 8px;
2120
2126
  text-align: center;
2121
2127
  font-size: 12px;
@@ -2124,28 +2130,28 @@ table.tmr-pending-anchor {
2124
2130
  }
2125
2131
 
2126
2132
  /* Radix Popover 内容(承载 ColorPalette),面板自带阴影,这里只兜底 z-index */
2127
- ._popoverContent_vghdk_318 {
2133
+ ._popoverContent_fvk6u_324 {
2128
2134
  z-index: 1000;
2129
2135
  }
2130
2136
 
2131
- ._mathLayer_vghdk_322 {
2137
+ ._mathLayer_fvk6u_328 {
2132
2138
  position: absolute;
2133
2139
  z-index: 6;
2134
2140
  }
2135
2141
 
2136
- ._mathStack_vghdk_327 {
2142
+ ._mathStack_fvk6u_333 {
2137
2143
  display: flex;
2138
2144
  flex-direction: column;
2139
2145
  align-items: flex-start;
2140
2146
  gap: 8px;
2141
2147
  }
2142
2148
 
2143
- ._mathStackBlock_vghdk_334 {
2149
+ ._mathStackBlock_fvk6u_340 {
2144
2150
  align-items: stretch;
2145
2151
  width: 100%;
2146
2152
  }
2147
2153
 
2148
- ._mathHint_vghdk_339 {
2154
+ ._mathHint_fvk6u_345 {
2149
2155
  display: inline-flex;
2150
2156
  align-items: center;
2151
2157
  gap: 6px;
@@ -2157,19 +2163,19 @@ table.tmr-pending-anchor {
2157
2163
  line-height: 1.4;
2158
2164
  }
2159
2165
 
2160
- ._mathHintBlock_vghdk_351 {
2166
+ ._mathHintBlock_fvk6u_357 {
2161
2167
  width: 100%;
2162
2168
  padding: 10px 14px;
2163
2169
  border-radius: 8px;
2164
2170
  }
2165
2171
 
2166
- ._mathHintIcon_vghdk_357 {
2172
+ ._mathHintIcon_fvk6u_363 {
2167
2173
  font-family: ui-serif, Georgia, 'Times New Roman', serif;
2168
2174
  font-size: 12px;
2169
2175
  opacity: 0.85;
2170
2176
  }
2171
2177
 
2172
- ._mathPreviewInline_vghdk_363 {
2178
+ ._mathPreviewInline_fvk6u_369 {
2173
2179
  display: inline-flex;
2174
2180
  max-width: min(440px, calc(100vw - 24px));
2175
2181
  padding: 4px 10px;
@@ -2179,7 +2185,7 @@ table.tmr-pending-anchor {
2179
2185
  color: var(--tmr-text, #363737);
2180
2186
  }
2181
2187
 
2182
- ._mathPreviewBlock_vghdk_373 {
2188
+ ._mathPreviewBlock_fvk6u_379 {
2183
2189
  width: 100%;
2184
2190
  min-height: 48px;
2185
2191
  padding: 14px 16px;
@@ -2190,11 +2196,11 @@ table.tmr-pending-anchor {
2190
2196
  color: var(--tmr-text, #363737);
2191
2197
  }
2192
2198
 
2193
- ._mathPreviewBlock_vghdk_373 .katex-display {
2199
+ ._mathPreviewBlock_fvk6u_379 .katex-display {
2194
2200
  margin: 0;
2195
2201
  }
2196
2202
 
2197
- ._mathField_vghdk_388 {
2203
+ ._mathField_fvk6u_394 {
2198
2204
  display: flex;
2199
2205
  align-items: center;
2200
2206
  gap: 8px;
@@ -2206,14 +2212,14 @@ table.tmr-pending-anchor {
2206
2212
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
2207
2213
  }
2208
2214
 
2209
- ._mathFieldBlock_vghdk_400 {
2215
+ ._mathFieldBlock_fvk6u_406 {
2210
2216
  align-items: flex-start;
2211
2217
  width: 100%;
2212
2218
  border-radius: 12px;
2213
2219
  padding: 10px 10px 10px 14px;
2214
2220
  }
2215
2221
 
2216
- ._mathInput_vghdk_407 {
2222
+ ._mathInput_fvk6u_413 {
2217
2223
  flex: 1;
2218
2224
  min-width: 0;
2219
2225
  margin: 0;
@@ -2227,11 +2233,11 @@ table.tmr-pending-anchor {
2227
2233
  resize: none;
2228
2234
  }
2229
2235
 
2230
- ._mathInput_vghdk_407:focus {
2236
+ ._mathInput_fvk6u_413:focus {
2231
2237
  outline: none;
2232
2238
  }
2233
2239
 
2234
- ._mathDone_vghdk_425 {
2240
+ ._mathDone_fvk6u_431 {
2235
2241
  display: inline-flex;
2236
2242
  align-items: center;
2237
2243
  gap: 4px;
@@ -2247,16 +2253,16 @@ table.tmr-pending-anchor {
2247
2253
  cursor: pointer;
2248
2254
  }
2249
2255
 
2250
- ._mathDone_vghdk_425:hover:not(:disabled) {
2256
+ ._mathDone_fvk6u_431:hover:not(:disabled) {
2251
2257
  filter: brightness(0.95);
2252
2258
  }
2253
2259
 
2254
- ._mathDone_vghdk_425:disabled {
2260
+ ._mathDone_fvk6u_431:disabled {
2255
2261
  opacity: 0.35;
2256
2262
  cursor: not-allowed;
2257
2263
  }
2258
2264
 
2259
- ._mathDoneKbd_vghdk_450 {
2265
+ ._mathDoneKbd_fvk6u_456 {
2260
2266
  font-size: 11px;
2261
2267
  font-weight: 500;
2262
2268
  opacity: 0.85;
package/dist/style.css CHANGED
@@ -1808,7 +1808,7 @@ table.tmr-pending-anchor {
1808
1808
  color: #22863a;
1809
1809
  }
1810
1810
  /* 顶部操作栏:横跨宽度、内容居中、细线灰图标。配色映射到可覆盖的 --tmr-* 变量。 */
1811
- ._toolbar_vghdk_2 {
1811
+ ._toolbar_fvk6u_2 {
1812
1812
  --sb-accent: var(--tmr-accent, #ff6719);
1813
1813
  --sb-text: var(--tmr-text, #363737);
1814
1814
  --sb-muted: var(--tmr-toolbar-muted, #6b6b6b);
@@ -1821,7 +1821,7 @@ table.tmr-pending-anchor {
1821
1821
  z-index: 8;
1822
1822
  }
1823
1823
 
1824
- ._inner_vghdk_15 {
1824
+ ._inner_fvk6u_15 {
1825
1825
  display: flex;
1826
1826
  align-items: center;
1827
1827
  /* 溢出时 `safe` 让居中回退为起点对齐——否则两端内容会被裁掉且滚不到头 */
@@ -1837,11 +1837,11 @@ table.tmr-pending-anchor {
1837
1837
  }
1838
1838
 
1839
1839
  /* 单行 + 溢出滚动时不允许把控件压扁(各控件本来就该保持自身宽度) */
1840
- ._inner_vghdk_15 > * {
1840
+ ._inner_fvk6u_15 > * {
1841
1841
  flex-shrink: 0;
1842
1842
  }
1843
1843
 
1844
- ._btn_vghdk_35 {
1844
+ ._btn_fvk6u_35 {
1845
1845
  display: inline-flex;
1846
1846
  align-items: center;
1847
1847
  justify-content: center;
@@ -1859,28 +1859,28 @@ table.tmr-pending-anchor {
1859
1859
  transition: background 0.15s, color 0.15s;
1860
1860
  }
1861
1861
 
1862
- ._btn_vghdk_35:hover:not(:disabled) {
1862
+ ._btn_fvk6u_35:hover:not(:disabled) {
1863
1863
  background: #f3f3f3;
1864
1864
  color: var(--sb-text);
1865
1865
  }
1866
1866
 
1867
- ._btnActive_vghdk_58 {
1867
+ ._btnActive_fvk6u_58 {
1868
1868
  color: var(--sb-accent);
1869
1869
  background: #fff3ec;
1870
1870
  }
1871
1871
 
1872
- ._btnActive_vghdk_58:hover {
1872
+ ._btnActive_fvk6u_58:hover {
1873
1873
  color: var(--sb-accent);
1874
1874
  background: #ffe8da;
1875
1875
  }
1876
1876
 
1877
- ._btn_vghdk_35:disabled {
1877
+ ._btn_fvk6u_35:disabled {
1878
1878
  opacity: 0.3;
1879
1879
  cursor: not-allowed;
1880
1880
  }
1881
1881
 
1882
1882
  /* 文字型图标(引用等) */
1883
- ._txtIcon_vghdk_74 {
1883
+ ._txtIcon_fvk6u_74 {
1884
1884
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
1885
1885
  font-size: 16px;
1886
1886
  font-weight: 600;
@@ -1888,7 +1888,7 @@ table.tmr-pending-anchor {
1888
1888
  }
1889
1889
 
1890
1890
  /* 文字颜色 / 高亮图标:字母 + 底部当前色条 */
1891
- ._colorIcon_vghdk_82 {
1891
+ ._colorIcon_fvk6u_82 {
1892
1892
  display: inline-flex;
1893
1893
  flex-direction: column;
1894
1894
  align-items: center;
@@ -1896,20 +1896,20 @@ table.tmr-pending-anchor {
1896
1896
  line-height: 1;
1897
1897
  }
1898
1898
 
1899
- ._colorIconGlyph_vghdk_90 {
1899
+ ._colorIconGlyph_fvk6u_90 {
1900
1900
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
1901
1901
  font-size: 15px;
1902
1902
  font-weight: 600;
1903
1903
  }
1904
1904
 
1905
- ._colorIconBar_vghdk_96 {
1905
+ ._colorIconBar_fvk6u_96 {
1906
1906
  width: 16px;
1907
1907
  height: 3px;
1908
1908
  border-radius: 1.5px;
1909
1909
  }
1910
1910
 
1911
1911
  /* A▾ 上标/下标下拉触发器 */
1912
- ._scriptTrigger_vghdk_103 {
1912
+ ._scriptTrigger_fvk6u_103 {
1913
1913
  display: inline-flex;
1914
1914
  align-items: center;
1915
1915
  gap: 3px;
@@ -1924,12 +1924,12 @@ table.tmr-pending-anchor {
1924
1924
  transition: background 0.15s, color 0.15s;
1925
1925
  }
1926
1926
 
1927
- ._scriptTrigger_vghdk_103:hover {
1927
+ ._scriptTrigger_fvk6u_103:hover {
1928
1928
  background: #f3f3f3;
1929
1929
  color: var(--sb-text);
1930
1930
  }
1931
1931
 
1932
- ._scriptTriggerGlyph_vghdk_123 {
1932
+ ._scriptTriggerGlyph_fvk6u_123 {
1933
1933
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
1934
1934
  font-size: 16px;
1935
1935
  font-weight: 600;
@@ -1937,7 +1937,7 @@ table.tmr-pending-anchor {
1937
1937
  text-underline-offset: 2px;
1938
1938
  }
1939
1939
 
1940
- ._divider_vghdk_131 {
1940
+ ._divider_fvk6u_131 {
1941
1941
  width: 1px;
1942
1942
  height: 20px;
1943
1943
  margin: 0 8px;
@@ -1946,14 +1946,19 @@ table.tmr-pending-anchor {
1946
1946
  }
1947
1947
 
1948
1948
  /* ── Style / Size / More 下拉触发器 ── */
1949
- ._styleTrigger_vghdk_140 {
1949
+ ._styleTrigger_fvk6u_140 {
1950
1950
  display: inline-flex;
1951
1951
  align-items: center;
1952
- justify-content: space-between;
1953
- gap: 6px;
1954
- width: 76px;
1952
+ /* 紧凑口径:宽随文案、文字与箭头只隔 4px。旧版固定 76px + space-between 会把二者
1953
+ 拉开到 ~17px,且四枚固定宽把工具栏内层(max-width: 1100px)恒定撑出 40px 溢出,
1954
+ 末端「更多」的箭头被裁在滚动容器可视区外(2026-10-10 用户反馈)。
1955
+ max-width 兜住长文案:最宽不超过旧的固定宽。 */
1956
+ justify-content: flex-start;
1957
+ gap: 4px;
1958
+ width: auto;
1959
+ max-width: 76px;
1955
1960
  height: 34px;
1956
- padding: 0 10px;
1961
+ padding: 0 6px;
1957
1962
  border: none;
1958
1963
  border-radius: 6px;
1959
1964
  background: transparent;
@@ -1966,31 +1971,32 @@ table.tmr-pending-anchor {
1966
1971
  transition: background 0.15s;
1967
1972
  }
1968
1973
 
1969
- ._styleTrigger_vghdk_140:hover:not(:disabled) {
1974
+ ._styleTrigger_fvk6u_140:hover:not(:disabled) {
1970
1975
  background: #f3f3f3;
1971
1976
  }
1972
1977
 
1973
- ._styleTrigger_vghdk_140:disabled {
1978
+ ._styleTrigger_fvk6u_140:disabled {
1974
1979
  opacity: 0.3;
1975
1980
  cursor: not-allowed;
1976
1981
  }
1977
1982
 
1978
- ._styleTriggerLabel_vghdk_169 {
1979
- flex: 1;
1983
+ ._styleTriggerLabel_fvk6u_174 {
1984
+ /* 不吃满空档:文字与箭头的间距完全由 gap 决定(flex: 1 会把空档塞在两者之间) */
1985
+ flex: 0 1 auto;
1980
1986
  text-align: left;
1981
1987
  overflow: hidden;
1982
1988
  white-space: nowrap;
1983
1989
  text-overflow: ellipsis;
1984
1990
  }
1985
1991
 
1986
- ._styleTriggerCaret_vghdk_177 {
1992
+ ._styleTriggerCaret_fvk6u_183 {
1987
1993
  color: var(--sb-muted);
1988
1994
  flex: none;
1989
1995
  }
1990
1996
 
1991
- /* 图标型触发器(对齐 / 缩进 / 行高,与 .styleTrigger 合用):Style / FontSize 那套是给
1992
- 「文字 + 箭头」的——固定 76px 宽 + space-between,套在图标上会把图标与箭头撑到两端。 */
1993
- ._iconTrigger_vghdk_184 {
1997
+ /* 图标型触发器(对齐 / 缩进 / 行高,与 .styleTrigger 合用):基础类是给「文字 + 箭头」的,
1998
+ 图标型只需「图标 + 箭头」贴紧并居中——宽度随内容、间距再收一档。 */
1999
+ ._iconTrigger_fvk6u_190 {
1994
2000
  width: auto;
1995
2001
  justify-content: center;
1996
2002
  gap: 2px;
@@ -1998,13 +2004,13 @@ table.tmr-pending-anchor {
1998
2004
  }
1999
2005
 
2000
2006
  /* 下拉项:图标 + 文字 */
2001
- ._styleItem_vghdk_192 {
2007
+ ._styleItem_fvk6u_198 {
2002
2008
  display: inline-flex;
2003
2009
  align-items: center;
2004
2010
  gap: 12px;
2005
2011
  }
2006
2012
 
2007
- ._styleIcon_vghdk_198 {
2013
+ ._styleIcon_fvk6u_204 {
2008
2014
  display: inline-flex;
2009
2015
  justify-content: center;
2010
2016
  align-items: center;
@@ -2014,19 +2020,19 @@ table.tmr-pending-anchor {
2014
2020
  }
2015
2021
 
2016
2022
  /* 上标 / 下标图标 */
2017
- ._scriptGlyph_vghdk_208 {
2023
+ ._scriptGlyph_fvk6u_214 {
2018
2024
  display: inline-block;
2019
2025
  text-align: center;
2020
2026
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
2021
2027
  }
2022
2028
 
2023
- ._scriptGlyph_vghdk_208 sup,
2024
- ._scriptGlyph_vghdk_208 sub {
2029
+ ._scriptGlyph_fvk6u_214 sup,
2030
+ ._scriptGlyph_fvk6u_214 sub {
2025
2031
  font-size: 0.7em;
2026
2032
  }
2027
2033
 
2028
2034
  /* ── Radix 下拉菜单面板 ── */
2029
- ._menu_vghdk_220 {
2035
+ ._menu_fvk6u_226 {
2030
2036
  min-width: 200px;
2031
2037
  padding: 6px;
2032
2038
  background: #fff;
@@ -2037,7 +2043,7 @@ table.tmr-pending-anchor {
2037
2043
  z-index: 1000;
2038
2044
  }
2039
2045
 
2040
- ._menuItem_vghdk_231 {
2046
+ ._menuItem_fvk6u_237 {
2041
2047
  display: flex;
2042
2048
  align-items: center;
2043
2049
  width: 100%;
@@ -2054,30 +2060,30 @@ table.tmr-pending-anchor {
2054
2060
  gap: 8px;
2055
2061
  }
2056
2062
 
2057
- ._menuItem_vghdk_231:hover:not(:disabled) {
2063
+ ._menuItem_fvk6u_237:hover:not(:disabled) {
2058
2064
  background: #f3f3f3;
2059
2065
  }
2060
2066
 
2061
- ._menuItem_vghdk_231:disabled {
2067
+ ._menuItem_fvk6u_237:disabled {
2062
2068
  opacity: 0.35;
2063
2069
  cursor: not-allowed;
2064
2070
  }
2065
2071
 
2066
2072
  /* 选中态:品牌色高亮 */
2067
- ._menuItemSelected_vghdk_258 {
2073
+ ._menuItemSelected_fvk6u_264 {
2068
2074
  background: #fff3ec;
2069
2075
  color: var(--sb-accent);
2070
2076
  }
2071
2077
 
2072
- ._menuItemSelected_vghdk_258 ._styleIcon_vghdk_198 {
2078
+ ._menuItemSelected_fvk6u_264 ._styleIcon_fvk6u_204 {
2073
2079
  color: var(--sb-accent);
2074
2080
  }
2075
2081
 
2076
- ._menuItemSelected_vghdk_258:hover:not(:disabled) {
2082
+ ._menuItemSelected_fvk6u_264:hover:not(:disabled) {
2077
2083
  background: #ffe8da;
2078
2084
  }
2079
2085
 
2080
- ._tableInsertCaret_vghdk_271 {
2086
+ ._tableInsertCaret_fvk6u_277 {
2081
2087
  margin-left: auto;
2082
2088
  color: var(--sb-muted);
2083
2089
  transform: rotate(-90deg);
@@ -2085,7 +2091,7 @@ table.tmr-pending-anchor {
2085
2091
  }
2086
2092
 
2087
2093
  /* 插入表格:行列网格选择器 */
2088
- ._tableSizePicker_vghdk_279 {
2094
+ ._tableSizePicker_fvk6u_285 {
2089
2095
  padding: 10px;
2090
2096
  background: #fff;
2091
2097
  border-radius: 10px;
@@ -2095,12 +2101,12 @@ table.tmr-pending-anchor {
2095
2101
  z-index: 1001;
2096
2102
  }
2097
2103
 
2098
- ._tableSizeGrid_vghdk_289 {
2104
+ ._tableSizeGrid_fvk6u_295 {
2099
2105
  display: grid;
2100
2106
  gap: 3px;
2101
2107
  }
2102
2108
 
2103
- ._tableSizeCell_vghdk_294 {
2109
+ ._tableSizeCell_fvk6u_300 {
2104
2110
  width: 16px;
2105
2111
  height: 16px;
2106
2112
  padding: 0;
@@ -2110,12 +2116,12 @@ table.tmr-pending-anchor {
2110
2116
  cursor: pointer;
2111
2117
  }
2112
2118
 
2113
- ._tableSizeCellActive_vghdk_304 {
2119
+ ._tableSizeCellActive_fvk6u_310 {
2114
2120
  border-color: var(--tmr-accent, #ff6719);
2115
2121
  background: #fff3ec;
2116
2122
  }
2117
2123
 
2118
- ._tableSizeLabel_vghdk_309 {
2124
+ ._tableSizeLabel_fvk6u_315 {
2119
2125
  margin-top: 8px;
2120
2126
  text-align: center;
2121
2127
  font-size: 12px;
@@ -2124,28 +2130,28 @@ table.tmr-pending-anchor {
2124
2130
  }
2125
2131
 
2126
2132
  /* Radix Popover 内容(承载 ColorPalette),面板自带阴影,这里只兜底 z-index */
2127
- ._popoverContent_vghdk_318 {
2133
+ ._popoverContent_fvk6u_324 {
2128
2134
  z-index: 1000;
2129
2135
  }
2130
2136
 
2131
- ._mathLayer_vghdk_322 {
2137
+ ._mathLayer_fvk6u_328 {
2132
2138
  position: absolute;
2133
2139
  z-index: 6;
2134
2140
  }
2135
2141
 
2136
- ._mathStack_vghdk_327 {
2142
+ ._mathStack_fvk6u_333 {
2137
2143
  display: flex;
2138
2144
  flex-direction: column;
2139
2145
  align-items: flex-start;
2140
2146
  gap: 8px;
2141
2147
  }
2142
2148
 
2143
- ._mathStackBlock_vghdk_334 {
2149
+ ._mathStackBlock_fvk6u_340 {
2144
2150
  align-items: stretch;
2145
2151
  width: 100%;
2146
2152
  }
2147
2153
 
2148
- ._mathHint_vghdk_339 {
2154
+ ._mathHint_fvk6u_345 {
2149
2155
  display: inline-flex;
2150
2156
  align-items: center;
2151
2157
  gap: 6px;
@@ -2157,19 +2163,19 @@ table.tmr-pending-anchor {
2157
2163
  line-height: 1.4;
2158
2164
  }
2159
2165
 
2160
- ._mathHintBlock_vghdk_351 {
2166
+ ._mathHintBlock_fvk6u_357 {
2161
2167
  width: 100%;
2162
2168
  padding: 10px 14px;
2163
2169
  border-radius: 8px;
2164
2170
  }
2165
2171
 
2166
- ._mathHintIcon_vghdk_357 {
2172
+ ._mathHintIcon_fvk6u_363 {
2167
2173
  font-family: ui-serif, Georgia, 'Times New Roman', serif;
2168
2174
  font-size: 12px;
2169
2175
  opacity: 0.85;
2170
2176
  }
2171
2177
 
2172
- ._mathPreviewInline_vghdk_363 {
2178
+ ._mathPreviewInline_fvk6u_369 {
2173
2179
  display: inline-flex;
2174
2180
  max-width: min(440px, calc(100vw - 24px));
2175
2181
  padding: 4px 10px;
@@ -2179,7 +2185,7 @@ table.tmr-pending-anchor {
2179
2185
  color: var(--tmr-text, #363737);
2180
2186
  }
2181
2187
 
2182
- ._mathPreviewBlock_vghdk_373 {
2188
+ ._mathPreviewBlock_fvk6u_379 {
2183
2189
  width: 100%;
2184
2190
  min-height: 48px;
2185
2191
  padding: 14px 16px;
@@ -2190,11 +2196,11 @@ table.tmr-pending-anchor {
2190
2196
  color: var(--tmr-text, #363737);
2191
2197
  }
2192
2198
 
2193
- ._mathPreviewBlock_vghdk_373 .katex-display {
2199
+ ._mathPreviewBlock_fvk6u_379 .katex-display {
2194
2200
  margin: 0;
2195
2201
  }
2196
2202
 
2197
- ._mathField_vghdk_388 {
2203
+ ._mathField_fvk6u_394 {
2198
2204
  display: flex;
2199
2205
  align-items: center;
2200
2206
  gap: 8px;
@@ -2206,14 +2212,14 @@ table.tmr-pending-anchor {
2206
2212
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
2207
2213
  }
2208
2214
 
2209
- ._mathFieldBlock_vghdk_400 {
2215
+ ._mathFieldBlock_fvk6u_406 {
2210
2216
  align-items: flex-start;
2211
2217
  width: 100%;
2212
2218
  border-radius: 12px;
2213
2219
  padding: 10px 10px 10px 14px;
2214
2220
  }
2215
2221
 
2216
- ._mathInput_vghdk_407 {
2222
+ ._mathInput_fvk6u_413 {
2217
2223
  flex: 1;
2218
2224
  min-width: 0;
2219
2225
  margin: 0;
@@ -2227,11 +2233,11 @@ table.tmr-pending-anchor {
2227
2233
  resize: none;
2228
2234
  }
2229
2235
 
2230
- ._mathInput_vghdk_407:focus {
2236
+ ._mathInput_fvk6u_413:focus {
2231
2237
  outline: none;
2232
2238
  }
2233
2239
 
2234
- ._mathDone_vghdk_425 {
2240
+ ._mathDone_fvk6u_431 {
2235
2241
  display: inline-flex;
2236
2242
  align-items: center;
2237
2243
  gap: 4px;
@@ -2247,16 +2253,16 @@ table.tmr-pending-anchor {
2247
2253
  cursor: pointer;
2248
2254
  }
2249
2255
 
2250
- ._mathDone_vghdk_425:hover:not(:disabled) {
2256
+ ._mathDone_fvk6u_431:hover:not(:disabled) {
2251
2257
  filter: brightness(0.95);
2252
2258
  }
2253
2259
 
2254
- ._mathDone_vghdk_425:disabled {
2260
+ ._mathDone_fvk6u_431:disabled {
2255
2261
  opacity: 0.35;
2256
2262
  cursor: not-allowed;
2257
2263
  }
2258
2264
 
2259
- ._mathDoneKbd_vghdk_450 {
2265
+ ._mathDoneKbd_fvk6u_456 {
2260
2266
  font-size: 11px;
2261
2267
  font-weight: 500;
2262
2268
  opacity: 0.85;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiptap-markdown-react",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
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.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -74,18 +74,18 @@
74
74
  "@tiptap/extension-code-block-lowlight": "3.31.3",
75
75
  "@tiptap/extension-file-handler": "3.31.3",
76
76
  "@tiptap/extension-find-and-replace": "3.31.3",
77
- "@tiptap/extension-heading": "^3.31.3",
77
+ "@tiptap/extension-heading": "3.31.3",
78
78
  "@tiptap/extension-highlight": "3.31.3",
79
79
  "@tiptap/extension-image": "3.31.3",
80
80
  "@tiptap/extension-mathematics": "3.31.3",
81
- "@tiptap/extension-paragraph": "^3.31.3",
81
+ "@tiptap/extension-paragraph": "3.31.3",
82
82
  "@tiptap/extension-subscript": "3.31.3",
83
83
  "@tiptap/extension-superscript": "3.31.3",
84
84
  "@tiptap/extension-table": "3.31.3",
85
85
  "@tiptap/extension-table-of-contents": "3.31.3",
86
86
  "@tiptap/extension-task-item": "3.31.3",
87
87
  "@tiptap/extension-task-list": "3.31.3",
88
- "@tiptap/extension-text-align": "^3.31.3",
88
+ "@tiptap/extension-text-align": "3.31.3",
89
89
  "@tiptap/extension-text-style": "3.31.3",
90
90
  "@tiptap/extensions": "3.31.3",
91
91
  "@tiptap/markdown": "3.31.3",