Skip to content

Commit

Permalink
mistune img problem
Browse files Browse the repository at this point in the history
  • Loading branch information
chengjun committed May 6, 2018
1 parent 06ce571 commit abf9cea
Show file tree
Hide file tree
Showing 14 changed files with 712 additions and 63 deletions.
Binary file modified .DS_Store
Binary file not shown.
90 changes: 88 additions & 2 deletions code/0.about2cjc.ipynb
Expand Up @@ -9,7 +9,6 @@
},
"source": [
"\n",
"### 复旦大学新闻传播学院硕士课程\n",
"***\n",
"***\n",
"# 计算新闻传播学\n",
Expand All @@ -28,15 +27,102 @@
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2018-05-06T13:30:44.679188Z",
"start_time": "2018-05-06T13:30:44.613497Z"
},
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"<img src = './img/webavatar.png'>\n",
"![title](img/webavatar.png)\n",
" \n",
"\n",
"http://computational-communication.com"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"<img src= 'img/webavatar.png'>\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"ExecuteTime": {
"end_time": "2018-05-06T14:16:44.794569Z",
"start_time": "2018-05-06T14:16:44.757499Z"
},
"slideshow": {
"slide_type": "slide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'0.7.2'"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import mistune\n",
"mistune.__version__"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"ExecuteTime": {
"end_time": "2018-05-06T14:16:47.242153Z",
"start_time": "2018-05-06T14:16:47.237267Z"
},
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'<p><img src=\"link\" align=\"right\" width=100></p>\\n'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"mistune.markdown('\\n <img src=\"link\" align=\"right\" width=100> \\n', escape=False)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"https://github.com/jupyter/nbconvert/issues/328\n",
"\n",
"> # conda install mistune=0.7.2"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down

0 comments on commit abf9cea

Please sign in to comment.