markdown 每日笔记
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 每日笔记相关的知识,希望对你有一定的参考价值。
Markdown don't allow space in the filenames. So encode to `%20` to replace the space in the filenames.
e.g.
`([ontology](2.1 Ontologies.md))`
should be
`([ontology](2.1%20Ontologies.md))`
For example, you have a repo like the following:
``` html
project/
text.md
subpro/
subtext.md
subsubpro/
subsubtext.md
subsubpro2/
subsubtext2.md
```
* The relative link to `subtext.md` in `text.md` might look like this:
`[this subtext](subpro/subtext.md)`
* The relative link to `subsubtext.md` in `text.md` might look like this:
`[this subsubtext](subpro/subsubpro/subsubtext.md)`
* The relative link to `subtext.md` in `subsubtext.md` might look like this:
`[this subtext](../subtext.md)`
* The relative link to `subsubtext2.md` in `subsubtext.md` might look like this:
`[this subsubtext2](../subsubpro2/subsubtext2.md)`
* The relative link to text.md in subsubtext.md might look like this:
`[this text](../../text.md)`
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you don't want show up your input, try `getpass`"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Please input your password: ········\n"
]
}
],
"source": [
"import getpass\n",
"password = getpass.getpass('Please input your password: ')"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'data mining'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"password"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
[source](https://stackoverflow.com/questions/17319940/how-to-escape-a-pipe-char-in-a-code-statement-in-a-markdown-table)
```python
| a | r |
|------------|-----|
| `a += x;` | r1 |
|a |= y; | r2|
```
| a | r |
|-------|-----|
| `a += x;` | r1|
|a |= y; | r2|
and
```python
| a | r |
|------------|-----|
| `a += x;` | r1 |
|<code>a |= y;</code> | r2|
```
| a | r |
|-------|-----|
| `a += x;` | r1|
|<code>a |= y;</code> | r2|
以上是关于markdown 每日笔记的主要内容,如果未能解决你的问题,请参考以下文章