|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "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, |
6 | 18 | "metadata": {}, |
7 | 19 | "outputs": [], |
8 | 20 | "source": [ |
9 | 21 | "from IPython.display import display, Markdown\n", |
10 | | - "import sys\n", |
11 | | - "sys.path.append(\"../\")\n", |
12 | 22 | "from mdparse.parser import transform_pre_rules, compose" |
13 | 23 | ] |
14 | 24 | }, |
| 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 | + }, |
15 | 42 | { |
16 | 43 | "cell_type": "markdown", |
17 | 44 | "metadata": {}, |
|
23 | 50 | }, |
24 | 51 | { |
25 | 52 | "cell_type": "code", |
26 | | - "execution_count": 2, |
| 53 | + "execution_count": 19, |
27 | 54 | "metadata": {}, |
28 | 55 | "outputs": [ |
29 | 56 | { |
|
101 | 128 | "<IPython.core.display.Markdown object>" |
102 | 129 | ] |
103 | 130 | }, |
104 | | - "execution_count": 2, |
| 131 | + "execution_count": 19, |
105 | 132 | "metadata": {}, |
106 | 133 | "output_type": "execute_result" |
107 | 134 | } |
|
122 | 149 | }, |
123 | 150 | { |
124 | 151 | "cell_type": "code", |
125 | | - "execution_count": 3, |
| 152 | + "execution_count": 20, |
126 | 153 | "metadata": {}, |
127 | 154 | "outputs": [ |
128 | 155 | { |
|
131 | 158 | "text": [ |
132 | 159 | "xxxhl This is a test markdown that has different types of formatting\n", |
133 | 160 | "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", |
135 | 162 | " lala lala\n", |
136 | | - " continuing the sentence here.\n", |
| 163 | + "continuing the sentence here.\n", |
137 | 164 | "more text.\n", |
138 | 165 | "xxxlistB bullet 1\n", |
139 | 166 | "bullet 2\n", |
140 | 167 | "xxxlistE\n", |
141 | | - " \"quoted text\"\n", |
| 168 | + "\"quoted text\"\n", |
142 | 169 | "xxxhs a small header\n", |
143 | 170 | " xxxcdb lang-python def something(x):\n", |
144 | 171 | " \\\"\"\"docstring\\\"\"\"\n", |
145 | 172 | " return False\n", |
146 | 173 | " xxxcde xxxatmention somebody\n", |
147 | 174 | "xxxqb blockquote text is here!\n", |
148 | 175 | "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", |
150 | 177 | "second\n", |
151 | 178 | "xxxlistE\n", |
152 | 179 | "xxxqb what this?\n", |
153 | 180 | "xxxqe\n", |
154 | 181 | "xxximg Tux, the Linux mascot xxximgf png\n", |
155 | 182 | "xxtbl First Header|Second Header\n", |
156 | 183 | "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", |
158 | 185 | "xxxlistB [x] Write the press release\n", |
159 | 186 | "[ ] Update the website\n", |
160 | 187 | "[ ] Contact the media\n", |
|
167 | 194 | "result = compose(transform_pre_rules)(md)\n", |
168 | 195 | "print(result)" |
169 | 196 | ] |
| 197 | + }, |
| 198 | + { |
| 199 | + "cell_type": "code", |
| 200 | + "execution_count": null, |
| 201 | + "metadata": {}, |
| 202 | + "outputs": [], |
| 203 | + "source": [] |
170 | 204 | } |
171 | 205 | ], |
172 | 206 | "metadata": { |
|
0 commit comments