Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.

Commit d51e90c

Browse files
committed
cleaned up nb
1 parent 5f53a55 commit d51e90c

File tree

1 file changed

+45
-11
lines changed

1 file changed

+45
-11
lines changed

notebooks/Demo.ipynb

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,43 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# Only un-comment the below two lines if working with local copy of this library\n",
10+
"\n",
11+
"# import sys\n",
12+
"# sys.path.append(\"../\")"
13+
]
14+
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": 17,
618
"metadata": {},
719
"outputs": [],
820
"source": [
921
"from IPython.display import display, Markdown\n",
10-
"import sys\n",
11-
"sys.path.append(\"../\")\n",
1222
"from mdparse.parser import transform_pre_rules, compose"
1323
]
1424
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": 18,
28+
"metadata": {},
29+
"outputs": [
30+
{
31+
"name": "stdout",
32+
"output_type": "stream",
33+
"text": [
34+
"Python 3.7.3\r\n"
35+
]
36+
}
37+
],
38+
"source": [
39+
"!python -V"
40+
]
41+
},
1542
{
1643
"cell_type": "markdown",
1744
"metadata": {},
@@ -23,7 +50,7 @@
2350
},
2451
{
2552
"cell_type": "code",
26-
"execution_count": 2,
53+
"execution_count": 19,
2754
"metadata": {},
2855
"outputs": [
2956
{
@@ -101,7 +128,7 @@
101128
"<IPython.core.display.Markdown object>"
102129
]
103130
},
104-
"execution_count": 2,
131+
"execution_count": 19,
105132
"metadata": {},
106133
"output_type": "execute_result"
107134
}
@@ -122,7 +149,7 @@
122149
},
123150
{
124151
"cell_type": "code",
125-
"execution_count": 3,
152+
"execution_count": 20,
126153
"metadata": {},
127154
"outputs": [
128155
{
@@ -131,30 +158,30 @@
131158
"text": [
132159
"xxxhl This is a test markdown that has different types of formatting\n",
133160
"xxxhm Header 2\n",
134-
" Hello world this is going to be a long sentence that. also has a newline:\n",
161+
"Hello world this is going to be a long sentence that. also has a newline:\n",
135162
" lala lala\n",
136-
" continuing the sentence here.\n",
163+
"continuing the sentence here.\n",
137164
"more text.\n",
138165
"xxxlistB bullet 1\n",
139166
"bullet 2\n",
140167
"xxxlistE\n",
141-
" \"quoted text\"\n",
168+
"\"quoted text\"\n",
142169
"xxxhs a small header\n",
143170
" xxxcdb lang-python def something(x):\n",
144171
" \\\"\"\"docstring\\\"\"\"\n",
145172
" return False\n",
146173
" xxxcde xxxatmention somebody\n",
147174
"xxxqb blockquote text is here!\n",
148175
"xxxqe\n",
149-
" hobbit-hole xxxlnkhb xxxhtml xxxlnkhe xxxlnktb Hobbit lifestyles xxxlnkte xxxlistB first\n",
176+
"hobbit-hole xxxlnkhb xxxhtml xxxlnkhe xxxlnktb Hobbit lifestyles xxxlnkte xxxlistB first\n",
150177
"second\n",
151178
"xxxlistE\n",
152179
"xxxqb what this?\n",
153180
"xxxqe\n",
154181
"xxximg Tux, the Linux mascot xxximgf png\n",
155182
"xxtbl First Header|Second Header\n",
156183
"xxxhr Hello xxxcdb something xxxcde here and stuff is there. google xxxlnkhb www.google.com xxxlnkhe. random text\n",
157-
" xxxdelb The world is flat. xxxdele We now know that the world is round.\n",
184+
"xxxdelb The world is flat. xxxdele We now know that the world is round.\n",
158185
"xxxlistB [x] Write the press release\n",
159186
"[ ] Update the website\n",
160187
"[ ] Contact the media\n",
@@ -167,6 +194,13 @@
167194
"result = compose(transform_pre_rules)(md)\n",
168195
"print(result)"
169196
]
197+
},
198+
{
199+
"cell_type": "code",
200+
"execution_count": null,
201+
"metadata": {},
202+
"outputs": [],
203+
"source": []
170204
}
171205
],
172206
"metadata": {

0 commit comments

Comments
 (0)