mathpix-markdown-it 1.2.10 → 1.2.12
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/.idea/workspace.xml +489 -352
- package/README.md +2 -0
- package/doc/images/latex-underline/latex-underline_01.png +0 -0
- package/doc/images/latex-underline/latex-underline_02.png +0 -0
- package/doc/images/latex-underline/latex-underline_03.png +0 -0
- package/doc/images/latex-underline/latex-underline_04.png +0 -0
- package/doc/images/latex-underline/latex-underline_05.png +0 -0
- package/doc/images/latex-underline/latex-underline_06.png +0 -0
- package/doc/latex-underline.md +83 -0
- package/es5/bundle.js +1 -1
- package/es5/index.js +1 -1
- package/lib/components/mathpix-markdown/index.js +3 -1
- package/lib/components/mathpix-markdown/index.js.map +1 -1
- package/lib/markdown/index.js +19 -1
- package/lib/markdown/index.js.map +1 -1
- package/lib/markdown/md-inline-rule/refs.d.ts +3 -0
- package/lib/markdown/md-inline-rule/refs.js +135 -0
- package/lib/markdown/md-inline-rule/refs.js.map +1 -0
- package/lib/markdown/md-inline-rule/underline.d.ts +3 -0
- package/lib/markdown/md-inline-rule/underline.js +200 -0
- package/lib/markdown/md-inline-rule/underline.js.map +1 -0
- package/lib/markdown/md-renderer-rules/underline.d.ts +5 -0
- package/lib/markdown/md-renderer-rules/underline.js +141 -0
- package/lib/markdown/md-renderer-rules/underline.js.map +1 -0
- package/lib/markdown/mdPluginRaw.js +10 -94
- package/lib/markdown/mdPluginRaw.js.map +1 -1
- package/lib/markdown/mdPluginText.js +46 -1
- package/lib/markdown/mdPluginText.js.map +1 -1
- package/lib/mathpix-markdown-model/index.d.ts +4 -0
- package/lib/mathpix-markdown-model/index.js +3 -1
- package/lib/mathpix-markdown-model/index.js.map +1 -1
- package/lib/styles/index.js +1 -1
- package/lib/styles/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,6 +104,8 @@ Auto increment counter to 8 \footnote{text should be 8}
|
|
|
104
104
|
|
|
105
105
|

|
|
106
106
|
|
|
107
|
+
- [Latex underline](doc/latex-underline.md)
|
|
108
|
+
|
|
107
109
|
# What is mathpix-markdown-it?
|
|
108
110
|
|
|
109
111
|
**mathpix-markdown-it** is an open source implementation of the mathpix-markdown spec written in Typescript.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
## Underline, bold and italize text
|
|
2
|
+
|
|
3
|
+
We can print bold, italicized, and underlined text using the commands `\textbf`, `\textit`, and `\underline`, respectively.
|
|
4
|
+
|
|
5
|
+
For example:
|
|
6
|
+
```
|
|
7
|
+
\textbf{Bold text}
|
|
8
|
+
\textit{Italic text}
|
|
9
|
+
\underline{Underlined text}
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This example produces the following output:
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Double underline
|
|
18
|
+
|
|
19
|
+
Double underlining text can be done easily using the command `\underline` twice or using the command `\uuline`:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
\underline{\underline{Double underlined text!}}
|
|
23
|
+
|
|
24
|
+
\uuline{Double underlined text!}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
produces the output:
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Wavy underlined text
|
|
33
|
+
|
|
34
|
+
We can easily create wavy underlined text using the command `\uwave{}`. Here is an illustrative example:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
\uwave{This text is underlined with a wavy line!}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
which produces the following result:
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## Strikethrough text
|
|
46
|
+
|
|
47
|
+
The command `\sout{}` which can be used to strikethrough text. Check this example:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
\sout{Text with a horizontal line through its center!}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
compiling this code yields:
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## Slash through letter
|
|
59
|
+
|
|
60
|
+
The command `\xout{}` can be used to create a hatching effect through text. Here is a basic usage of this command:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
\xout{Text with hatching pattern!}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
This code yields the following:
|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## Dashed and dotted underline
|
|
72
|
+
|
|
73
|
+
The commands `\dashuline{}` and `\dotuline{}` as their names state can be used to create dashed and dotted lines under text respectively. Check the following code:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
\dashuline{Dashed Underline}
|
|
77
|
+
|
|
78
|
+
\dotuline{Dotted Underline}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
which produces the following output:
|
|
82
|
+
|
|
83
|
+

|