@simon_he/vue-tui 1.1.13 → 1.1.15
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/agent.cjs +827 -24
- package/dist/agent.js +1 -1
- package/dist/experimental.cjs +16 -3
- package/dist/experimental.js +1 -1
- package/dist/markdown.cjs +811 -21
- package/dist/{tlog-theme-DKq1YOQF.js → tlog-theme-zAInqC2W.js} +46 -0
- package/package.json +9 -9
package/dist/markdown.cjs
CHANGED
|
@@ -1292,7 +1292,7 @@ function loadBuiltinMathRasterizer() {
|
|
|
1292
1292
|
})()), builtinRasterizerLoad;
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
|
-
// node_modules/.pnpm/stream-markdown-parser@1.2.
|
|
1295
|
+
// node_modules/.pnpm/stream-markdown-parser@1.2.20/node_modules/stream-markdown-parser/dist/index.js
|
|
1296
1296
|
var __create2 = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
|
|
1297
1297
|
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
1298
1298
|
}, __export$1 = (all) => {
|
|
@@ -1675,7 +1675,756 @@ var require_markdown_it_task_checkbox = /* @__PURE__ */ __commonJS({ "../../node
|
|
|
1675
1675
|
function startsWithTodoMarkdown(token) {
|
|
1676
1676
|
return /^\[[xX \u00A0]\][ \u00A0]/.test(token.content);
|
|
1677
1677
|
}
|
|
1678
|
-
} }),
|
|
1678
|
+
} }), import_markdown_it_task_checkbox = /* @__PURE__ */ __toESM2(require_markdown_it_task_checkbox(), 1), ambiguousMinimalCodePoint = 161, ambiguousMaximumCodePoint = 1114109, ambiguousRanges = [
|
|
1679
|
+
161,
|
|
1680
|
+
161,
|
|
1681
|
+
164,
|
|
1682
|
+
164,
|
|
1683
|
+
167,
|
|
1684
|
+
168,
|
|
1685
|
+
170,
|
|
1686
|
+
170,
|
|
1687
|
+
173,
|
|
1688
|
+
174,
|
|
1689
|
+
176,
|
|
1690
|
+
180,
|
|
1691
|
+
182,
|
|
1692
|
+
186,
|
|
1693
|
+
188,
|
|
1694
|
+
191,
|
|
1695
|
+
198,
|
|
1696
|
+
198,
|
|
1697
|
+
208,
|
|
1698
|
+
208,
|
|
1699
|
+
215,
|
|
1700
|
+
216,
|
|
1701
|
+
222,
|
|
1702
|
+
225,
|
|
1703
|
+
230,
|
|
1704
|
+
230,
|
|
1705
|
+
232,
|
|
1706
|
+
234,
|
|
1707
|
+
236,
|
|
1708
|
+
237,
|
|
1709
|
+
240,
|
|
1710
|
+
240,
|
|
1711
|
+
242,
|
|
1712
|
+
243,
|
|
1713
|
+
247,
|
|
1714
|
+
250,
|
|
1715
|
+
252,
|
|
1716
|
+
252,
|
|
1717
|
+
254,
|
|
1718
|
+
254,
|
|
1719
|
+
257,
|
|
1720
|
+
257,
|
|
1721
|
+
273,
|
|
1722
|
+
273,
|
|
1723
|
+
275,
|
|
1724
|
+
275,
|
|
1725
|
+
283,
|
|
1726
|
+
283,
|
|
1727
|
+
294,
|
|
1728
|
+
295,
|
|
1729
|
+
299,
|
|
1730
|
+
299,
|
|
1731
|
+
305,
|
|
1732
|
+
307,
|
|
1733
|
+
312,
|
|
1734
|
+
312,
|
|
1735
|
+
319,
|
|
1736
|
+
322,
|
|
1737
|
+
324,
|
|
1738
|
+
324,
|
|
1739
|
+
328,
|
|
1740
|
+
331,
|
|
1741
|
+
333,
|
|
1742
|
+
333,
|
|
1743
|
+
338,
|
|
1744
|
+
339,
|
|
1745
|
+
358,
|
|
1746
|
+
359,
|
|
1747
|
+
363,
|
|
1748
|
+
363,
|
|
1749
|
+
462,
|
|
1750
|
+
462,
|
|
1751
|
+
464,
|
|
1752
|
+
464,
|
|
1753
|
+
466,
|
|
1754
|
+
466,
|
|
1755
|
+
468,
|
|
1756
|
+
468,
|
|
1757
|
+
470,
|
|
1758
|
+
470,
|
|
1759
|
+
472,
|
|
1760
|
+
472,
|
|
1761
|
+
474,
|
|
1762
|
+
474,
|
|
1763
|
+
476,
|
|
1764
|
+
476,
|
|
1765
|
+
593,
|
|
1766
|
+
593,
|
|
1767
|
+
609,
|
|
1768
|
+
609,
|
|
1769
|
+
708,
|
|
1770
|
+
708,
|
|
1771
|
+
711,
|
|
1772
|
+
711,
|
|
1773
|
+
713,
|
|
1774
|
+
715,
|
|
1775
|
+
717,
|
|
1776
|
+
717,
|
|
1777
|
+
720,
|
|
1778
|
+
720,
|
|
1779
|
+
728,
|
|
1780
|
+
731,
|
|
1781
|
+
733,
|
|
1782
|
+
733,
|
|
1783
|
+
735,
|
|
1784
|
+
735,
|
|
1785
|
+
768,
|
|
1786
|
+
879,
|
|
1787
|
+
913,
|
|
1788
|
+
929,
|
|
1789
|
+
931,
|
|
1790
|
+
937,
|
|
1791
|
+
945,
|
|
1792
|
+
961,
|
|
1793
|
+
963,
|
|
1794
|
+
969,
|
|
1795
|
+
1025,
|
|
1796
|
+
1025,
|
|
1797
|
+
1040,
|
|
1798
|
+
1103,
|
|
1799
|
+
1105,
|
|
1800
|
+
1105,
|
|
1801
|
+
8208,
|
|
1802
|
+
8208,
|
|
1803
|
+
8211,
|
|
1804
|
+
8214,
|
|
1805
|
+
8216,
|
|
1806
|
+
8217,
|
|
1807
|
+
8220,
|
|
1808
|
+
8221,
|
|
1809
|
+
8224,
|
|
1810
|
+
8226,
|
|
1811
|
+
8228,
|
|
1812
|
+
8231,
|
|
1813
|
+
8240,
|
|
1814
|
+
8240,
|
|
1815
|
+
8242,
|
|
1816
|
+
8243,
|
|
1817
|
+
8245,
|
|
1818
|
+
8245,
|
|
1819
|
+
8251,
|
|
1820
|
+
8251,
|
|
1821
|
+
8254,
|
|
1822
|
+
8254,
|
|
1823
|
+
8308,
|
|
1824
|
+
8308,
|
|
1825
|
+
8319,
|
|
1826
|
+
8319,
|
|
1827
|
+
8321,
|
|
1828
|
+
8324,
|
|
1829
|
+
8364,
|
|
1830
|
+
8364,
|
|
1831
|
+
8451,
|
|
1832
|
+
8451,
|
|
1833
|
+
8453,
|
|
1834
|
+
8453,
|
|
1835
|
+
8457,
|
|
1836
|
+
8457,
|
|
1837
|
+
8467,
|
|
1838
|
+
8467,
|
|
1839
|
+
8470,
|
|
1840
|
+
8470,
|
|
1841
|
+
8481,
|
|
1842
|
+
8482,
|
|
1843
|
+
8486,
|
|
1844
|
+
8486,
|
|
1845
|
+
8491,
|
|
1846
|
+
8491,
|
|
1847
|
+
8531,
|
|
1848
|
+
8532,
|
|
1849
|
+
8539,
|
|
1850
|
+
8542,
|
|
1851
|
+
8544,
|
|
1852
|
+
8555,
|
|
1853
|
+
8560,
|
|
1854
|
+
8569,
|
|
1855
|
+
8585,
|
|
1856
|
+
8585,
|
|
1857
|
+
8592,
|
|
1858
|
+
8601,
|
|
1859
|
+
8632,
|
|
1860
|
+
8633,
|
|
1861
|
+
8658,
|
|
1862
|
+
8658,
|
|
1863
|
+
8660,
|
|
1864
|
+
8660,
|
|
1865
|
+
8679,
|
|
1866
|
+
8679,
|
|
1867
|
+
8704,
|
|
1868
|
+
8704,
|
|
1869
|
+
8706,
|
|
1870
|
+
8707,
|
|
1871
|
+
8711,
|
|
1872
|
+
8712,
|
|
1873
|
+
8715,
|
|
1874
|
+
8715,
|
|
1875
|
+
8719,
|
|
1876
|
+
8719,
|
|
1877
|
+
8721,
|
|
1878
|
+
8721,
|
|
1879
|
+
8725,
|
|
1880
|
+
8725,
|
|
1881
|
+
8730,
|
|
1882
|
+
8730,
|
|
1883
|
+
8733,
|
|
1884
|
+
8736,
|
|
1885
|
+
8739,
|
|
1886
|
+
8739,
|
|
1887
|
+
8741,
|
|
1888
|
+
8741,
|
|
1889
|
+
8743,
|
|
1890
|
+
8748,
|
|
1891
|
+
8750,
|
|
1892
|
+
8750,
|
|
1893
|
+
8756,
|
|
1894
|
+
8759,
|
|
1895
|
+
8764,
|
|
1896
|
+
8765,
|
|
1897
|
+
8776,
|
|
1898
|
+
8776,
|
|
1899
|
+
8780,
|
|
1900
|
+
8780,
|
|
1901
|
+
8786,
|
|
1902
|
+
8786,
|
|
1903
|
+
8800,
|
|
1904
|
+
8801,
|
|
1905
|
+
8804,
|
|
1906
|
+
8807,
|
|
1907
|
+
8810,
|
|
1908
|
+
8811,
|
|
1909
|
+
8814,
|
|
1910
|
+
8815,
|
|
1911
|
+
8834,
|
|
1912
|
+
8835,
|
|
1913
|
+
8838,
|
|
1914
|
+
8839,
|
|
1915
|
+
8853,
|
|
1916
|
+
8853,
|
|
1917
|
+
8857,
|
|
1918
|
+
8857,
|
|
1919
|
+
8869,
|
|
1920
|
+
8869,
|
|
1921
|
+
8895,
|
|
1922
|
+
8895,
|
|
1923
|
+
8978,
|
|
1924
|
+
8978,
|
|
1925
|
+
9312,
|
|
1926
|
+
9449,
|
|
1927
|
+
9451,
|
|
1928
|
+
9547,
|
|
1929
|
+
9552,
|
|
1930
|
+
9587,
|
|
1931
|
+
9600,
|
|
1932
|
+
9615,
|
|
1933
|
+
9618,
|
|
1934
|
+
9621,
|
|
1935
|
+
9632,
|
|
1936
|
+
9633,
|
|
1937
|
+
9635,
|
|
1938
|
+
9641,
|
|
1939
|
+
9650,
|
|
1940
|
+
9651,
|
|
1941
|
+
9654,
|
|
1942
|
+
9655,
|
|
1943
|
+
9660,
|
|
1944
|
+
9661,
|
|
1945
|
+
9664,
|
|
1946
|
+
9665,
|
|
1947
|
+
9670,
|
|
1948
|
+
9672,
|
|
1949
|
+
9675,
|
|
1950
|
+
9675,
|
|
1951
|
+
9678,
|
|
1952
|
+
9681,
|
|
1953
|
+
9698,
|
|
1954
|
+
9701,
|
|
1955
|
+
9711,
|
|
1956
|
+
9711,
|
|
1957
|
+
9733,
|
|
1958
|
+
9734,
|
|
1959
|
+
9737,
|
|
1960
|
+
9737,
|
|
1961
|
+
9742,
|
|
1962
|
+
9743,
|
|
1963
|
+
9756,
|
|
1964
|
+
9756,
|
|
1965
|
+
9758,
|
|
1966
|
+
9758,
|
|
1967
|
+
9792,
|
|
1968
|
+
9792,
|
|
1969
|
+
9794,
|
|
1970
|
+
9794,
|
|
1971
|
+
9824,
|
|
1972
|
+
9825,
|
|
1973
|
+
9827,
|
|
1974
|
+
9829,
|
|
1975
|
+
9831,
|
|
1976
|
+
9834,
|
|
1977
|
+
9836,
|
|
1978
|
+
9837,
|
|
1979
|
+
9839,
|
|
1980
|
+
9839,
|
|
1981
|
+
9886,
|
|
1982
|
+
9887,
|
|
1983
|
+
9919,
|
|
1984
|
+
9919,
|
|
1985
|
+
9926,
|
|
1986
|
+
9933,
|
|
1987
|
+
9935,
|
|
1988
|
+
9939,
|
|
1989
|
+
9941,
|
|
1990
|
+
9953,
|
|
1991
|
+
9955,
|
|
1992
|
+
9955,
|
|
1993
|
+
9960,
|
|
1994
|
+
9961,
|
|
1995
|
+
9963,
|
|
1996
|
+
9969,
|
|
1997
|
+
9972,
|
|
1998
|
+
9972,
|
|
1999
|
+
9974,
|
|
2000
|
+
9977,
|
|
2001
|
+
9979,
|
|
2002
|
+
9980,
|
|
2003
|
+
9982,
|
|
2004
|
+
9983,
|
|
2005
|
+
10045,
|
|
2006
|
+
10045,
|
|
2007
|
+
10102,
|
|
2008
|
+
10111,
|
|
2009
|
+
11094,
|
|
2010
|
+
11097,
|
|
2011
|
+
12872,
|
|
2012
|
+
12879,
|
|
2013
|
+
57344,
|
|
2014
|
+
63743,
|
|
2015
|
+
65024,
|
|
2016
|
+
65039,
|
|
2017
|
+
65533,
|
|
2018
|
+
65533,
|
|
2019
|
+
127232,
|
|
2020
|
+
127242,
|
|
2021
|
+
127248,
|
|
2022
|
+
127277,
|
|
2023
|
+
127280,
|
|
2024
|
+
127337,
|
|
2025
|
+
127344,
|
|
2026
|
+
127373,
|
|
2027
|
+
127375,
|
|
2028
|
+
127376,
|
|
2029
|
+
127387,
|
|
2030
|
+
127404,
|
|
2031
|
+
917760,
|
|
2032
|
+
917999,
|
|
2033
|
+
983040,
|
|
2034
|
+
1048573,
|
|
2035
|
+
1048576,
|
|
2036
|
+
1114109
|
|
2037
|
+
], fullwidthMinimalCodePoint = 12288, fullwidthMaximumCodePoint = 65510, fullwidthRanges = [
|
|
2038
|
+
12288,
|
|
2039
|
+
12288,
|
|
2040
|
+
65281,
|
|
2041
|
+
65376,
|
|
2042
|
+
65504,
|
|
2043
|
+
65510
|
|
2044
|
+
], halfwidthMinimalCodePoint = 8361, halfwidthMaximumCodePoint = 65518, halfwidthRanges = [
|
|
2045
|
+
8361,
|
|
2046
|
+
8361,
|
|
2047
|
+
65377,
|
|
2048
|
+
65470,
|
|
2049
|
+
65474,
|
|
2050
|
+
65479,
|
|
2051
|
+
65482,
|
|
2052
|
+
65487,
|
|
2053
|
+
65490,
|
|
2054
|
+
65495,
|
|
2055
|
+
65498,
|
|
2056
|
+
65500,
|
|
2057
|
+
65512,
|
|
2058
|
+
65518
|
|
2059
|
+
], narrowMinimalCodePoint = 32, narrowMaximumCodePoint = 10630, narrowRanges = [
|
|
2060
|
+
32,
|
|
2061
|
+
126,
|
|
2062
|
+
162,
|
|
2063
|
+
163,
|
|
2064
|
+
165,
|
|
2065
|
+
166,
|
|
2066
|
+
172,
|
|
2067
|
+
172,
|
|
2068
|
+
175,
|
|
2069
|
+
175,
|
|
2070
|
+
10214,
|
|
2071
|
+
10221,
|
|
2072
|
+
10629,
|
|
2073
|
+
10630
|
|
2074
|
+
], wideMinimalCodePoint = 4352, wideMaximumCodePoint = 262141, wideRanges = [
|
|
2075
|
+
4352,
|
|
2076
|
+
4447,
|
|
2077
|
+
8986,
|
|
2078
|
+
8987,
|
|
2079
|
+
9001,
|
|
2080
|
+
9002,
|
|
2081
|
+
9193,
|
|
2082
|
+
9196,
|
|
2083
|
+
9200,
|
|
2084
|
+
9200,
|
|
2085
|
+
9203,
|
|
2086
|
+
9203,
|
|
2087
|
+
9725,
|
|
2088
|
+
9726,
|
|
2089
|
+
9748,
|
|
2090
|
+
9749,
|
|
2091
|
+
9776,
|
|
2092
|
+
9783,
|
|
2093
|
+
9800,
|
|
2094
|
+
9811,
|
|
2095
|
+
9855,
|
|
2096
|
+
9855,
|
|
2097
|
+
9866,
|
|
2098
|
+
9871,
|
|
2099
|
+
9875,
|
|
2100
|
+
9875,
|
|
2101
|
+
9889,
|
|
2102
|
+
9889,
|
|
2103
|
+
9898,
|
|
2104
|
+
9899,
|
|
2105
|
+
9917,
|
|
2106
|
+
9918,
|
|
2107
|
+
9924,
|
|
2108
|
+
9925,
|
|
2109
|
+
9934,
|
|
2110
|
+
9934,
|
|
2111
|
+
9940,
|
|
2112
|
+
9940,
|
|
2113
|
+
9962,
|
|
2114
|
+
9962,
|
|
2115
|
+
9970,
|
|
2116
|
+
9971,
|
|
2117
|
+
9973,
|
|
2118
|
+
9973,
|
|
2119
|
+
9978,
|
|
2120
|
+
9978,
|
|
2121
|
+
9981,
|
|
2122
|
+
9981,
|
|
2123
|
+
9989,
|
|
2124
|
+
9989,
|
|
2125
|
+
9994,
|
|
2126
|
+
9995,
|
|
2127
|
+
10024,
|
|
2128
|
+
10024,
|
|
2129
|
+
10060,
|
|
2130
|
+
10060,
|
|
2131
|
+
10062,
|
|
2132
|
+
10062,
|
|
2133
|
+
10067,
|
|
2134
|
+
10069,
|
|
2135
|
+
10071,
|
|
2136
|
+
10071,
|
|
2137
|
+
10133,
|
|
2138
|
+
10135,
|
|
2139
|
+
10160,
|
|
2140
|
+
10160,
|
|
2141
|
+
10175,
|
|
2142
|
+
10175,
|
|
2143
|
+
11035,
|
|
2144
|
+
11036,
|
|
2145
|
+
11088,
|
|
2146
|
+
11088,
|
|
2147
|
+
11093,
|
|
2148
|
+
11093,
|
|
2149
|
+
11904,
|
|
2150
|
+
11929,
|
|
2151
|
+
11931,
|
|
2152
|
+
12019,
|
|
2153
|
+
12032,
|
|
2154
|
+
12245,
|
|
2155
|
+
12272,
|
|
2156
|
+
12287,
|
|
2157
|
+
12289,
|
|
2158
|
+
12350,
|
|
2159
|
+
12353,
|
|
2160
|
+
12438,
|
|
2161
|
+
12441,
|
|
2162
|
+
12543,
|
|
2163
|
+
12549,
|
|
2164
|
+
12591,
|
|
2165
|
+
12593,
|
|
2166
|
+
12686,
|
|
2167
|
+
12688,
|
|
2168
|
+
12773,
|
|
2169
|
+
12783,
|
|
2170
|
+
12830,
|
|
2171
|
+
12832,
|
|
2172
|
+
12871,
|
|
2173
|
+
12880,
|
|
2174
|
+
42124,
|
|
2175
|
+
42128,
|
|
2176
|
+
42182,
|
|
2177
|
+
43360,
|
|
2178
|
+
43388,
|
|
2179
|
+
44032,
|
|
2180
|
+
55203,
|
|
2181
|
+
63744,
|
|
2182
|
+
64255,
|
|
2183
|
+
65040,
|
|
2184
|
+
65049,
|
|
2185
|
+
65072,
|
|
2186
|
+
65106,
|
|
2187
|
+
65108,
|
|
2188
|
+
65126,
|
|
2189
|
+
65128,
|
|
2190
|
+
65131,
|
|
2191
|
+
94176,
|
|
2192
|
+
94180,
|
|
2193
|
+
94192,
|
|
2194
|
+
94198,
|
|
2195
|
+
94208,
|
|
2196
|
+
101589,
|
|
2197
|
+
101631,
|
|
2198
|
+
101662,
|
|
2199
|
+
101760,
|
|
2200
|
+
101874,
|
|
2201
|
+
110576,
|
|
2202
|
+
110579,
|
|
2203
|
+
110581,
|
|
2204
|
+
110587,
|
|
2205
|
+
110589,
|
|
2206
|
+
110590,
|
|
2207
|
+
110592,
|
|
2208
|
+
110882,
|
|
2209
|
+
110898,
|
|
2210
|
+
110898,
|
|
2211
|
+
110928,
|
|
2212
|
+
110930,
|
|
2213
|
+
110933,
|
|
2214
|
+
110933,
|
|
2215
|
+
110948,
|
|
2216
|
+
110951,
|
|
2217
|
+
110960,
|
|
2218
|
+
111355,
|
|
2219
|
+
119552,
|
|
2220
|
+
119638,
|
|
2221
|
+
119648,
|
|
2222
|
+
119670,
|
|
2223
|
+
126980,
|
|
2224
|
+
126980,
|
|
2225
|
+
127183,
|
|
2226
|
+
127183,
|
|
2227
|
+
127374,
|
|
2228
|
+
127374,
|
|
2229
|
+
127377,
|
|
2230
|
+
127386,
|
|
2231
|
+
127488,
|
|
2232
|
+
127490,
|
|
2233
|
+
127504,
|
|
2234
|
+
127547,
|
|
2235
|
+
127552,
|
|
2236
|
+
127560,
|
|
2237
|
+
127568,
|
|
2238
|
+
127569,
|
|
2239
|
+
127584,
|
|
2240
|
+
127589,
|
|
2241
|
+
127744,
|
|
2242
|
+
127776,
|
|
2243
|
+
127789,
|
|
2244
|
+
127797,
|
|
2245
|
+
127799,
|
|
2246
|
+
127868,
|
|
2247
|
+
127870,
|
|
2248
|
+
127891,
|
|
2249
|
+
127904,
|
|
2250
|
+
127946,
|
|
2251
|
+
127951,
|
|
2252
|
+
127955,
|
|
2253
|
+
127968,
|
|
2254
|
+
127984,
|
|
2255
|
+
127988,
|
|
2256
|
+
127988,
|
|
2257
|
+
127992,
|
|
2258
|
+
128062,
|
|
2259
|
+
128064,
|
|
2260
|
+
128064,
|
|
2261
|
+
128066,
|
|
2262
|
+
128252,
|
|
2263
|
+
128255,
|
|
2264
|
+
128317,
|
|
2265
|
+
128331,
|
|
2266
|
+
128334,
|
|
2267
|
+
128336,
|
|
2268
|
+
128359,
|
|
2269
|
+
128378,
|
|
2270
|
+
128378,
|
|
2271
|
+
128405,
|
|
2272
|
+
128406,
|
|
2273
|
+
128420,
|
|
2274
|
+
128420,
|
|
2275
|
+
128507,
|
|
2276
|
+
128591,
|
|
2277
|
+
128640,
|
|
2278
|
+
128709,
|
|
2279
|
+
128716,
|
|
2280
|
+
128716,
|
|
2281
|
+
128720,
|
|
2282
|
+
128722,
|
|
2283
|
+
128725,
|
|
2284
|
+
128728,
|
|
2285
|
+
128732,
|
|
2286
|
+
128735,
|
|
2287
|
+
128747,
|
|
2288
|
+
128748,
|
|
2289
|
+
128756,
|
|
2290
|
+
128764,
|
|
2291
|
+
128992,
|
|
2292
|
+
129003,
|
|
2293
|
+
129008,
|
|
2294
|
+
129008,
|
|
2295
|
+
129292,
|
|
2296
|
+
129338,
|
|
2297
|
+
129340,
|
|
2298
|
+
129349,
|
|
2299
|
+
129351,
|
|
2300
|
+
129535,
|
|
2301
|
+
129648,
|
|
2302
|
+
129660,
|
|
2303
|
+
129664,
|
|
2304
|
+
129674,
|
|
2305
|
+
129678,
|
|
2306
|
+
129734,
|
|
2307
|
+
129736,
|
|
2308
|
+
129736,
|
|
2309
|
+
129741,
|
|
2310
|
+
129756,
|
|
2311
|
+
129759,
|
|
2312
|
+
129770,
|
|
2313
|
+
129775,
|
|
2314
|
+
129784,
|
|
2315
|
+
131072,
|
|
2316
|
+
196605,
|
|
2317
|
+
196608,
|
|
2318
|
+
262141
|
|
2319
|
+
], isInRange = (ranges, codePoint) => {
|
|
2320
|
+
let low = 0, high = Math.floor(ranges.length / 2) - 1;
|
|
2321
|
+
for (; low <= high; ) {
|
|
2322
|
+
let mid = Math.floor((low + high) / 2), i = mid * 2;
|
|
2323
|
+
if (codePoint < ranges[i])
|
|
2324
|
+
high = mid - 1;
|
|
2325
|
+
else if (codePoint > ranges[i + 1])
|
|
2326
|
+
low = mid + 1;
|
|
2327
|
+
else
|
|
2328
|
+
return !0;
|
|
2329
|
+
}
|
|
2330
|
+
return !1;
|
|
2331
|
+
}, commonCjkCodePoint = 19968, [wideFastPathStart, wideFastPathEnd] = /* @__PURE__ */ findWideFastPathRange(wideRanges);
|
|
2332
|
+
function findWideFastPathRange(ranges) {
|
|
2333
|
+
let fastPathStart = ranges[0], fastPathEnd = ranges[1];
|
|
2334
|
+
for (let index = 0; index < ranges.length; index += 2) {
|
|
2335
|
+
let start = ranges[index], end = ranges[index + 1];
|
|
2336
|
+
if (commonCjkCodePoint >= start && commonCjkCodePoint <= end)
|
|
2337
|
+
return [start, end];
|
|
2338
|
+
end - start > fastPathEnd - fastPathStart && (fastPathStart = start, fastPathEnd = end);
|
|
2339
|
+
}
|
|
2340
|
+
return [fastPathStart, fastPathEnd];
|
|
2341
|
+
}
|
|
2342
|
+
var isAmbiguous = (codePoint) => codePoint < ambiguousMinimalCodePoint || codePoint > ambiguousMaximumCodePoint ? !1 : isInRange(ambiguousRanges, codePoint), isFullWidth = (codePoint) => codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint ? !1 : isInRange(fullwidthRanges, codePoint), isHalfWidth = (codePoint) => codePoint < halfwidthMinimalCodePoint || codePoint > halfwidthMaximumCodePoint ? !1 : isInRange(halfwidthRanges, codePoint), isNarrow = (codePoint) => codePoint < narrowMinimalCodePoint || codePoint > narrowMaximumCodePoint ? !1 : isInRange(narrowRanges, codePoint), isWide = (codePoint) => codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd ? !0 : codePoint < wideMinimalCodePoint || codePoint > wideMaximumCodePoint ? !1 : isInRange(wideRanges, codePoint);
|
|
2343
|
+
function getCategory(codePoint) {
|
|
2344
|
+
return isAmbiguous(codePoint) ? "ambiguous" : isFullWidth(codePoint) ? "fullwidth" : isHalfWidth(codePoint) ? "halfwidth" : isNarrow(codePoint) ? "narrow" : isWide(codePoint) ? "wide" : "neutral";
|
|
2345
|
+
}
|
|
2346
|
+
function validate(codePoint) {
|
|
2347
|
+
if (!Number.isSafeInteger(codePoint))
|
|
2348
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
2349
|
+
}
|
|
2350
|
+
function eastAsianWidthType(codePoint) {
|
|
2351
|
+
return validate(codePoint), getCategory(codePoint);
|
|
2352
|
+
}
|
|
2353
|
+
function isEmoji(uc) {
|
|
2354
|
+
return /^\p{Emoji_Presentation}/u.test(String.fromCodePoint(uc));
|
|
2355
|
+
}
|
|
2356
|
+
function isCjkBase(uc) {
|
|
2357
|
+
if (uc < 4352)
|
|
2358
|
+
return !1;
|
|
2359
|
+
switch (eastAsianWidthType(uc)) {
|
|
2360
|
+
case "fullwidth":
|
|
2361
|
+
case "halfwidth":
|
|
2362
|
+
return !0;
|
|
2363
|
+
case "wide":
|
|
2364
|
+
return !isEmoji(uc);
|
|
2365
|
+
case "narrow":
|
|
2366
|
+
return !1;
|
|
2367
|
+
case "ambiguous":
|
|
2368
|
+
return null;
|
|
2369
|
+
case "neutral":
|
|
2370
|
+
return /^\p{sc=Hangul}/u.test(String.fromCodePoint(uc));
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
function is2PreviousCjk(uc, prev) {
|
|
2374
|
+
return isCjkBase(uc) ?? (prev === 65025 && isQuotationMark(uc));
|
|
2375
|
+
function isQuotationMark(uc$1) {
|
|
2376
|
+
return uc$1 === 8216 || uc$1 === 8217 || uc$1 === 8220 || uc$1 === 8221;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
function isPreviousCjk(uc) {
|
|
2380
|
+
return isCjkBase(uc) ?? (917760 <= uc && uc <= 917999);
|
|
2381
|
+
}
|
|
2382
|
+
function isNextCjk(uc) {
|
|
2383
|
+
return isCjkBase(uc) ?? !1;
|
|
2384
|
+
}
|
|
2385
|
+
function nonEmojiGeneralUseVS(uc) {
|
|
2386
|
+
return uc >= 65024 && uc <= 65038;
|
|
2387
|
+
}
|
|
2388
|
+
function markdownItCjkFriendlyPlugin(md) {
|
|
2389
|
+
let PreviousState = md.inline.State;
|
|
2390
|
+
class CjkFriendlyState extends PreviousState {
|
|
2391
|
+
scanDelims(start, canSplitWord) {
|
|
2392
|
+
let max = this.posMax, marker = this.src.charCodeAt(start), [lastChar, lastCharPos] = getLastCharCode(this.src, start), lastMainChar = lastChar, twoPrevChar = null;
|
|
2393
|
+
nonEmojiGeneralUseVS(lastChar) && (twoPrevChar = getLastCharCode(this.src, lastCharPos)[0], /^\p{Zs}/u.test(String.fromCodePoint(twoPrevChar)) || (lastMainChar = twoPrevChar));
|
|
2394
|
+
let pos = start;
|
|
2395
|
+
for (; pos < max && this.src.charCodeAt(pos) === marker; )
|
|
2396
|
+
pos++;
|
|
2397
|
+
let count = pos - start, nextChar = pos < max ? this.src.codePointAt(pos) : 32, isLastWhiteSpace = md.utils.isWhiteSpace(lastMainChar), isNextWhiteSpace = md.utils.isWhiteSpace(nextChar);
|
|
2398
|
+
if (isLastWhiteSpace || isNextWhiteSpace)
|
|
2399
|
+
return {
|
|
2400
|
+
can_open: !isNextWhiteSpace,
|
|
2401
|
+
can_close: !isLastWhiteSpace,
|
|
2402
|
+
length: count
|
|
2403
|
+
};
|
|
2404
|
+
let isLastPunctChar = md.utils.isMdAsciiPunct(lastMainChar) || md.utils.isPunctChar(String.fromCodePoint(lastMainChar)), isNextPunctChar = md.utils.isMdAsciiPunct(nextChar) || md.utils.isPunctChar(String.fromCodePoint(nextChar)), left_flanking = isLastPunctChar, right_flanking = isNextPunctChar;
|
|
2405
|
+
if (canSplitWord) {
|
|
2406
|
+
let isEitherCJKChar = isNextCjk(nextChar) || (twoPrevChar !== null ? is2PreviousCjk(twoPrevChar, lastChar) : isPreviousCjk(lastChar));
|
|
2407
|
+
left_flanking || (left_flanking = isEitherCJKChar || !isNextPunctChar), right_flanking || (right_flanking = isEitherCJKChar || !isLastPunctChar);
|
|
2408
|
+
}
|
|
2409
|
+
return {
|
|
2410
|
+
can_open: left_flanking,
|
|
2411
|
+
can_close: right_flanking,
|
|
2412
|
+
length: count
|
|
2413
|
+
};
|
|
2414
|
+
function getLastCharCode(str, pos$1) {
|
|
2415
|
+
if (pos$1 <= 0)
|
|
2416
|
+
return [32, -1];
|
|
2417
|
+
let charCode = str.charCodeAt(pos$1 - 1);
|
|
2418
|
+
if ((charCode & 64512) !== 56320)
|
|
2419
|
+
return [charCode, pos$1 - 1];
|
|
2420
|
+
let codePoint = str.codePointAt(pos$1 - 2);
|
|
2421
|
+
return codePoint > 65535 ? [codePoint, pos$1 - 2] : [charCode, pos$1 - 1];
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
md.inline.State = CjkFriendlyState;
|
|
2426
|
+
}
|
|
2427
|
+
var decodeMap = /* @__PURE__ */ new Map([
|
|
1679
2428
|
[0, 65533],
|
|
1680
2429
|
[128, 8364],
|
|
1681
2430
|
[130, 8218],
|
|
@@ -1997,7 +2746,7 @@ var htmlDecoder = /* @__PURE__ */ getDecoder(htmlDecodeTree);
|
|
|
1997
2746
|
function decodeHTML(htmlString, mode = DecodingMode.Legacy) {
|
|
1998
2747
|
return htmlDecoder(htmlString, mode);
|
|
1999
2748
|
}
|
|
2000
|
-
var
|
|
2749
|
+
var decodeCache = {};
|
|
2001
2750
|
function getDecodeCache(exclude) {
|
|
2002
2751
|
let cache = decodeCache[exclude];
|
|
2003
2752
|
if (cache)
|
|
@@ -4466,6 +5215,13 @@ var ParserInline = class {
|
|
|
4466
5215
|
constructor() {
|
|
4467
5216
|
__publicField(this, "ruler");
|
|
4468
5217
|
__publicField(this, "ruler2");
|
|
5218
|
+
/**
|
|
5219
|
+
* State class used for inline parsing, mirroring `ParserInline.prototype.State` in
|
|
5220
|
+
* markdown-it. Plugins subclass it (`scanDelims`, `push`, `pushPending`, ...) and assign
|
|
5221
|
+
* the subclass back to `md.inline.State`; the parser then constructs it with
|
|
5222
|
+
* `new this.State(...)`.
|
|
5223
|
+
*/
|
|
5224
|
+
__publicField(this, "State", StateInline);
|
|
4469
5225
|
__publicField(this, "cachedRulesVersion", -1);
|
|
4470
5226
|
__publicField(this, "cachedRules", []);
|
|
4471
5227
|
__publicField(this, "cachedRules2Version", -1);
|
|
@@ -4572,13 +5328,20 @@ var ParserInline = class {
|
|
|
4572
5328
|
isDefaultRuleset() {
|
|
4573
5329
|
return this.ruler.version === this.defaultRulerVersion && this.ruler2.version === this.defaultRuler2Version;
|
|
4574
5330
|
}
|
|
5331
|
+
/**
|
|
5332
|
+
* Whether inline parsing still uses the stock `StateInline`. The plain-text fast paths
|
|
5333
|
+
* construct no state at all, so they must stand down once a plugin replaces `State`.
|
|
5334
|
+
*/
|
|
5335
|
+
usesDefaultState() {
|
|
5336
|
+
return this.State === StateInline;
|
|
5337
|
+
}
|
|
4575
5338
|
parseSource(src, md, env, outTokens) {
|
|
4576
|
-
if (typeof src == "string" && src.length > 0 && this.isDefaultRuleset() && isPlainInlineText$1(src)) {
|
|
5339
|
+
if (typeof src == "string" && src.length > 0 && this.isDefaultRuleset() && this.usesDefaultState() && isPlainInlineText$1(src)) {
|
|
4577
5340
|
let token = new Token("text", "", 0);
|
|
4578
5341
|
token.content = src, outTokens.push(token);
|
|
4579
5342
|
return;
|
|
4580
5343
|
}
|
|
4581
|
-
let state = new
|
|
5344
|
+
let state = new this.State(src, md, env, outTokens);
|
|
4582
5345
|
this.tokenize(state);
|
|
4583
5346
|
let rules2 = this.getRules2(), len = rules2.length;
|
|
4584
5347
|
if (!(state.env && (Object.prototype.hasOwnProperty.call(state.env, "__mdtsRuleProfile") || Object.prototype.hasOwnProperty.call(state.env, "__mdtsProfileRules")))) {
|
|
@@ -4605,7 +5368,7 @@ var ParserInline = class {
|
|
|
4605
5368
|
}
|
|
4606
5369
|
};
|
|
4607
5370
|
function inline(state) {
|
|
4608
|
-
let tokens = state.tokens,
|
|
5371
|
+
let tokens = state.tokens, inlineParser = state.md?.inline, canUsePlainTextFastPath = !!inlineParser?.isDefaultRuleset?.() && inlineParser?.usesDefaultState?.() !== !1;
|
|
4609
5372
|
for (let i = 0, l = tokens.length; i < l; i++) {
|
|
4610
5373
|
let tok = tokens[i];
|
|
4611
5374
|
if (tok.type === "inline" && state.md) {
|
|
@@ -9541,11 +10304,12 @@ function getParserRuleVersions(md) {
|
|
|
9541
10304
|
core: md.core.ruler.version,
|
|
9542
10305
|
block: md.block.ruler.version,
|
|
9543
10306
|
inline: md.inline.ruler.version,
|
|
9544
|
-
inline2: md.inline.ruler2.version
|
|
10307
|
+
inline2: md.inline.ruler2.version,
|
|
10308
|
+
inlineState: md.inline.State
|
|
9545
10309
|
};
|
|
9546
10310
|
}
|
|
9547
10311
|
function hasParserRuleChanges(md, initial) {
|
|
9548
|
-
return md.core.ruler.version !== initial.core || md.block.ruler.version !== initial.block || md.inline.ruler.version !== initial.inline || md.inline.ruler2.version !== initial.inline2;
|
|
10312
|
+
return md.core.ruler.version !== initial.core || md.block.ruler.version !== initial.block || md.inline.ruler.version !== initial.inline || md.inline.ruler2.version !== initial.inline2 || md.inline.State !== initial.inlineState;
|
|
9549
10313
|
}
|
|
9550
10314
|
function applyExperimentalOptions(options) {
|
|
9551
10315
|
return options.experimental ? {
|
|
@@ -10234,7 +10998,7 @@ function container_plugin(md, name, options) {
|
|
|
10234
10998
|
return tokens[idx].nesting === 1 && tokens[idx].attrJoin("class", name), slf.renderToken(tokens, idx, _options, env, slf);
|
|
10235
10999
|
}
|
|
10236
11000
|
options = options || {};
|
|
10237
|
-
let min_markers = 3, marker_str = options.marker || ":", marker_char = marker_str.charCodeAt(0), marker_len = marker_str.length, validate = options.validate || validateDefault, render = options.render || renderDefault;
|
|
11001
|
+
let min_markers = 3, marker_str = options.marker || ":", marker_char = marker_str.charCodeAt(0), marker_len = marker_str.length, validate$1 = options.validate || validateDefault, render = options.render || renderDefault;
|
|
10238
11002
|
function container(state, startLine, endLine, silent) {
|
|
10239
11003
|
let pos, auto_closed = !1, start = state.bMarks[startLine] + state.tShift[startLine], max = state.eMarks[startLine];
|
|
10240
11004
|
if (marker_char !== state.src.charCodeAt(start))
|
|
@@ -10246,7 +11010,7 @@ function container_plugin(md, name, options) {
|
|
|
10246
11010
|
return !1;
|
|
10247
11011
|
pos -= (pos - start) % marker_len;
|
|
10248
11012
|
let markup = state.src.slice(start, pos), params = state.src.slice(pos, max);
|
|
10249
|
-
if (!validate(params, markup))
|
|
11013
|
+
if (!validate$1(params, markup))
|
|
10250
11014
|
return !1;
|
|
10251
11015
|
if (silent)
|
|
10252
11016
|
return !0;
|
|
@@ -11611,6 +12375,21 @@ function setSyntheticLinkOrigin(token, origin) {
|
|
|
11611
12375
|
function readSyntheticLinkOrigin(token) {
|
|
11612
12376
|
return syntheticLinkOrigins.get(token);
|
|
11613
12377
|
}
|
|
12378
|
+
function resolveLinkMarkup(token) {
|
|
12379
|
+
if (!token)
|
|
12380
|
+
return "";
|
|
12381
|
+
let origin = readSyntheticLinkOrigin(token);
|
|
12382
|
+
if (origin === "linkify" || origin === "autolink")
|
|
12383
|
+
return origin;
|
|
12384
|
+
let markup = typeof token.markup == "string" ? token.markup : "";
|
|
12385
|
+
return markup === "linkify" || markup === "autolink" ? markup : "";
|
|
12386
|
+
}
|
|
12387
|
+
function copySyntheticLinkOrigin(from, to) {
|
|
12388
|
+
if (!from || !to)
|
|
12389
|
+
return;
|
|
12390
|
+
let origin = readSyntheticLinkOrigin(from);
|
|
12391
|
+
origin && syntheticLinkOrigins.set(to, origin);
|
|
12392
|
+
}
|
|
11614
12393
|
function registerCacheStableLinkValidator(validateLink$1) {
|
|
11615
12394
|
cacheStableLinkValidators.add(validateLink$1);
|
|
11616
12395
|
}
|
|
@@ -11848,7 +12627,7 @@ function fixLinkToken(tokens, raw) {
|
|
|
11848
12627
|
} else if (curToken?.type === "text" && curToken.content?.endsWith("(") && tokens[i + 1]?.type === "link_open") {
|
|
11849
12628
|
let match = curToken.content.match(/\[([^\]]+)\]/);
|
|
11850
12629
|
if (match) {
|
|
11851
|
-
let beforeText = curToken.content.slice(0, match.index), emphasisMatch = beforeText.match(/(\*+)$/),
|
|
12630
|
+
let beforeText = curToken.content.slice(0, match.index), emphasisMatch = beforeText.match(/(\*+)$/), linkOpenMarkup = tokens[i + 1]?.markup, origin = (linkOpenMarkup === "linkify" || linkOpenMarkup === "autolink") && (match.index ?? 0) + match[0].length === curToken.content.length - 1 ? "explicit" : getSyntheticLinkOrigin(linkOpenMarkup), replacerTokens = [];
|
|
11852
12631
|
if (emphasisMatch) {
|
|
11853
12632
|
beforeText = beforeText.slice(0, emphasisMatch.index), beforeText && replacerTokens.push(textToken(beforeText));
|
|
11854
12633
|
let text$1 = match[1], type = emphasisMatch[1].length;
|
|
@@ -13562,7 +14341,7 @@ function factory(opts = {}) {
|
|
|
13562
14341
|
});
|
|
13563
14342
|
registerCacheStableLinkValidator(validateLink$1), md.set({ validateLink: validateLink$1 });
|
|
13564
14343
|
}
|
|
13565
|
-
return applyInlineUrlValidation(md), applyLinkifyCandidateFilter(md), (opts.enableMath ?? !0) && applyMath(md, {
|
|
14344
|
+
return applyInlineUrlValidation(md), applyLinkifyCandidateFilter(md), (opts.cjkFriendly ?? !0) && md.use(markdownItCjkFriendlyPlugin), (opts.enableMath ?? !0) && applyMath(md, {
|
|
13566
14345
|
...getDefaultMathOptions() ?? {},
|
|
13567
14346
|
...opts.mathOptions ?? {}
|
|
13568
14347
|
}), (opts.enableContainers ?? !0) && applyContainers(md), opts.enableFixIndentedCodeBlock !== !1 && applyFixIndentedCodeBlock(md), applyFixLinkTokens(md), applyFixStrongTokens(md), applyFixListItem(md), applyFixTableTokens(md), applyRenderRules(md), applyFixHtmlInlineTokens(md, { customHtmlTags: opts.customHtmlTags }), md;
|
|
@@ -13923,7 +14702,7 @@ function applyNodeSourceMapRange(node, token, endLine, options) {
|
|
|
13923
14702
|
}
|
|
13924
14703
|
function cloneTokenWithMutableChildren(token) {
|
|
13925
14704
|
let copy = Object.assign(Object.create(Object.getPrototypeOf(token)), token);
|
|
13926
|
-
return Array.isArray(token.attrs) && (copy.attrs = token.attrs.map((attr) => [...attr])), Array.isArray(token.map) && (copy.map = [...token.map]), Array.isArray(token.children) && (copy.children = token.children.map((child) => cloneTokenWithMutableChildren(child))), copy;
|
|
14705
|
+
return Array.isArray(token.attrs) && (copy.attrs = token.attrs.map((attr) => [...attr])), Array.isArray(token.map) && (copy.map = [...token.map]), Array.isArray(token.children) && (copy.children = token.children.map((child) => cloneTokenWithMutableChildren(child))), copySyntheticLinkOrigin(token, copy), copy;
|
|
13927
14706
|
}
|
|
13928
14707
|
function isPlainObject(value) {
|
|
13929
14708
|
if (!value || typeof value != "object")
|
|
@@ -14014,6 +14793,10 @@ function canCloneMarkdownTokenFast(token, enumerableKeys) {
|
|
|
14014
14793
|
return !0;
|
|
14015
14794
|
}
|
|
14016
14795
|
function cloneMarkdownToken(token, cloneObjectFields = !0) {
|
|
14796
|
+
let cloned = cloneMarkdownTokenValue(token, cloneObjectFields);
|
|
14797
|
+
return copySyntheticLinkOrigin(token, cloned), cloned;
|
|
14798
|
+
}
|
|
14799
|
+
function cloneMarkdownTokenValue(token, cloneObjectFields = !0) {
|
|
14017
14800
|
if (!cloneObjectFields)
|
|
14018
14801
|
return cloneTokenWithMutableChildren(token);
|
|
14019
14802
|
let allKeys = Reflect.ownKeys(token), enumerableKeys = Object.keys(token);
|
|
@@ -15491,7 +16274,8 @@ function parseHtmlInlineCodeToken(token, tokens, i, parseInlineTokens$1, raw, pP
|
|
|
15491
16274
|
attrs: normalizedAttrs,
|
|
15492
16275
|
children: normalizedChildren$1,
|
|
15493
16276
|
loading: !fragment$1.closed,
|
|
15494
|
-
raw: fragment$1.html || code$1
|
|
16277
|
+
raw: fragment$1.html || code$1,
|
|
16278
|
+
markup: "html"
|
|
15495
16279
|
}, fragment$1.nextIndex];
|
|
15496
16280
|
}
|
|
15497
16281
|
if (selfClosing)
|
|
@@ -15642,7 +16426,8 @@ function parseLinkToken(tokens, startIndex, parseInlineTokens$1, options) {
|
|
|
15642
16426
|
children,
|
|
15643
16427
|
raw: `[${linkText}](${href}${title ? ` "${title}"` : ""})`,
|
|
15644
16428
|
loading,
|
|
15645
|
-
attrs: normalizedAttrs
|
|
16429
|
+
attrs: normalizedAttrs,
|
|
16430
|
+
markup: resolveLinkMarkup(openToken)
|
|
15646
16431
|
},
|
|
15647
16432
|
nextIndex: i < tokens.length ? i + 1 : tokens.length
|
|
15648
16433
|
};
|
|
@@ -15872,7 +16657,8 @@ function recoverMarkdownLinkFromTrailingText(state, token) {
|
|
|
15872
16657
|
content: label,
|
|
15873
16658
|
raw: label
|
|
15874
16659
|
}],
|
|
15875
|
-
raw: `[${label}](${href}${linkToken.title ? ` "${linkToken.title}"` : ""})
|
|
16660
|
+
raw: `[${label}](${href}${linkToken.title ? ` "${linkToken.title}"` : ""})`,
|
|
16661
|
+
markup: resolveLinkMarkup(token)
|
|
15876
16662
|
}), !0;
|
|
15877
16663
|
}
|
|
15878
16664
|
function recoverMarkdownImageFromLoadingImageTail(state, token) {
|
|
@@ -15935,7 +16721,8 @@ function buildLoadingOuterImageLinkNode(imageNode, href = "", title = null) {
|
|
|
15935
16721
|
text: text$1,
|
|
15936
16722
|
children: [imageNode],
|
|
15937
16723
|
raw: `[${text$1}](${href}${title ? ` "${title}"` : ""})`,
|
|
15938
|
-
loading: !0
|
|
16724
|
+
loading: !0,
|
|
16725
|
+
markup: ""
|
|
15939
16726
|
};
|
|
15940
16727
|
}
|
|
15941
16728
|
function buildLoadingImageNodeFromRaw(raw) {
|
|
@@ -16059,7 +16846,8 @@ function handleInlineLinkContent(state, content, _token) {
|
|
|
16059
16846
|
content: text$1,
|
|
16060
16847
|
raw: text$1
|
|
16061
16848
|
}],
|
|
16062
|
-
loading: loading$1
|
|
16849
|
+
loading: loading$1,
|
|
16850
|
+
markup: ""
|
|
16063
16851
|
}), state.index += index, !0;
|
|
16064
16852
|
}
|
|
16065
16853
|
let linkContentEnd = content.indexOf(")", linkEnd), href = linkContentEnd !== -1 ? content.slice(linkEnd + 2, linkContentEnd) : "", loading = linkContentEnd === -1, emphasisMatch = textNodeContent.match(/\*+$/);
|
|
@@ -16093,7 +16881,8 @@ function handleInlineLinkContent(state, content, _token) {
|
|
|
16093
16881
|
content: text$1,
|
|
16094
16882
|
raw: text$1
|
|
16095
16883
|
}],
|
|
16096
|
-
loading
|
|
16884
|
+
loading,
|
|
16885
|
+
markup: ""
|
|
16097
16886
|
}), type === 1) {
|
|
16098
16887
|
newTokens.push({
|
|
16099
16888
|
type: "em_close",
|
|
@@ -16137,7 +16926,8 @@ function handleInlineLinkContent(state, content, _token) {
|
|
|
16137
16926
|
content: text$1,
|
|
16138
16927
|
raw: text$1
|
|
16139
16928
|
}],
|
|
16140
|
-
loading
|
|
16929
|
+
loading,
|
|
16930
|
+
markup: ""
|
|
16141
16931
|
});
|
|
16142
16932
|
let afterText = linkContentEnd !== -1 ? content.slice(linkContentEnd + 1) : "";
|
|
16143
16933
|
return afterText && (state.dispatchToken({
|
|
@@ -17000,7 +17790,7 @@ function parseInlineTokens(tokens, raw, pPreToken, options) {
|
|
|
17000
17790
|
function pushToken(token) {
|
|
17001
17791
|
resetCurrentTextNode();
|
|
17002
17792
|
let node = cloneTokenWithMutableChildren(token);
|
|
17003
|
-
state.result.push(node);
|
|
17793
|
+
node.type === "link" && (node.markup = resolveLinkMarkup(token)), state.result.push(node);
|
|
17004
17794
|
}
|
|
17005
17795
|
function pushText(content, raw$1) {
|
|
17006
17796
|
state.currentTextNode ? (state.currentTextNode.content += content, state.currentTextNode.raw += raw$1 ?? content) : (state.currentTextNode = {
|