我有一個自述文件,其中有六個列表。Github中的列表項之間出現額外的行Markdown
一切正常,直到倒數第二個清單。問題是這些列表項之間會出現額外的換行符。這將是更清晰了截圖:
我用崇高的文本降價預覽包,我看到相同的格式問題,如果我預覽使用Github的降價預處理。
什麼是最奇怪的,不過,是我沒有看到同樣的問題,如果我輸入我的文字爲https://jbt.github.io/markdown-editor
如果你想嘗試自己,用以下字符串:
_git_
- **gl**: `git log <optional args>` _shows the revision history_
- **gpoh**: `git push origin head` _pushes the current branch_
- **gpom**: `git push origin master` _pushes the master branch_
- **grv**: `git remote -v` _lists the remotes_
- **gs**: `git status` _shows unstaged & staged changes_
- **gacm**: `git add -A; git commit -m "<message>"` _commits all changes with a message_
- **gacm-lfs**: `sudo git add -A; sudo git commit -m <message>` _it might not be this way for everyone,
but for me `sudo git` uses git-lfs (git large filesystem) while `git` uses regular git. This function
adds and commits all files with a message in a git-lfs repo._
- **gc**: `git checkout <branch>` _changes branches_
- **gclo**: `git clone <repo>` _clones a repo_
- **get_branch**: `git branch -f origin/<branch>; git checkout <branch>` _gets a specific branch from a remote repo_
_fish meta functions_
- **backup_functions**: `cd ~/.config/fish/functions; git add -A; git commit -m "<message>"; git push origin master; cd -` _backups the functions folder into a repo_
- **cdfns**: `cd ~/.config/fish/functions` _changes into the functions dir_
- **cfn**: `cat ~/.config/fish/functions/<name>.fish` _shows the definition of a function_
- **efn**: `nano ~/.config/fish/functions/<name>.fish` _edits a function's definition (using nano)_
- **fn**: `echo -e "function $argv[1]\n $argv[2]\nend" > ~/.config/fish/functions/$argv[1].fish` _create a function_
- **fns**: `ls ~/.config/fish/functions` _list functions_
- **rmfn**: `rm ~/.config/fish/functions/<name>.fish` _remove a function_
- **fndoc**: `echo -e "- <text>" >> ~/.config/fish/functions/README.md` _adds a line to the readme documenting a function_
- **fs**: `funcsave <name>` _alias for funcsave, e.g.:_
function fs
funcsave $argv
end
fs fs
謝謝,不知道這個區別。有沒有辦法迫使它成爲一個緊張的名單? –
不可以,如果你的列表中沒有空行,這意味着沒有塊級結構(沒有代碼塊),你只能得到緊密的列表。 – Waylan
我剛剛添加了一個解釋,爲什麼有些實現在最後展現出不同的行爲。 – Waylan