Skip to content

Commit

Permalink
upgrade to version v2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
D0n9X1n committed Dec 28, 2016
1 parent 6828240 commit 58f52db
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 35 deletions.
32 changes: 7 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Yet another vim markdown preview plugin. Not suitable for Windows.
6. then you can open your vim and type **:MarkdownPreview Github** to check whether it is ok

###Usage

You can see exmaple document here [TEST.md](./TEST.md)

####Common Usage
1. edit your markdown doc normally
2. when you want to preview it in html you just use **:MarkdownPreview default** to show your doc in your browser
3. if you want to change your style. you just use **:MarkdownPreview GitHub** in github style markdown view
4. you can also use the following code to have more fun
4. you can also use the following code to bind key maps.
```
map <leader>m :MarkdownPreview GitHub<CR>
```
Expand Down Expand Up @@ -85,7 +85,7 @@ Then when you use `MarkdownPreview github`, you can see the result as below:
> ![code-result](./images/charts-result.png)
####Customize
this theme is in the css folder, if you want to change it to your favorite theme. follow the steps:
This theme is in the css folder, if you want to change it to your favorite theme. follow the steps:
- go into your .vim folder
- find **MarkDownRes** folder and you will find default.css and GitHub.css here
- add your custom css file here, such as **example.css**
Expand All @@ -98,28 +98,10 @@ this theme is in the css folder, if you want to change it to your favorite theme
3. mermaid

####TODO
see [@TODO.md](https://github.com/MikeCoder/markdown-preview.vim/blob/master/TODO.md)
See [@TODO.md](https://github.com/MikeCoder/markdown-preview.vim/blob/master/TODO.md)

####LAST
wish you have a nice day

####LECENSE
The MIT License (MIT)

Copyright © 2015 TangDongxin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the “Software”), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Wish you have a nice day

####LICENSE
See [@LICENSE](./LICENSE)
74 changes: 74 additions & 0 deletions TEST.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,77 @@
###Flowchart
```chart
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```

```chart
graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D
```

```chart
graph TB
sq[Square shape] --> ci((Circle shape))
subgraph A subgraph
od>Odd shape]-- Two line<br>edge comment --> ro
di{Diamond with <br/> line break} -.-> ro(Rounded<br>square<br>shape)
di==>ro2(Rounded square shape)
end
%% Notice that no text in shape are added here instead that is appended further down
e --> od3>Really long text with linebreak<br>in an Odd shape]
%% Comments after double percent signs
e((Inner / circle<br>and some odd <br>special characters)) --> f(,.?!+-*ز)
cyr[Cyrillic]-->cyr2((Circle shape Начало));
classDef green fill:#9f6,stroke:#333,stroke-width:2px;
classDef orange fill:#f96,stroke:#333,stroke-width:4px;
class sq,e green
class di orange
```

```chart
sequenceDiagram
loop Daily query
Alice->>Bob: Hello Bob, how are you?
alt is sick
Bob->>Alice: Not so good :(
else is well
Bob->>Alice: Feeling fresh like a daisy
end
opt Extra response
Bob->>Alice: Thanks for asking
end
end
```

###HTML BLOCK

<center> In god we trust. </center>

###Table
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

###PYTHON
```
#!/usr/bin/env python
Expand Down
11 changes: 5 additions & 6 deletions plugin/markdown-preview.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
""""""""""""""""""""""""""""""""""""""""""""
" let VERSION = '2.2.1'
" let AUTHOR = 'Mike Tang'
" let EMAIL = '[email protected]'
""""""""""""""""""""""""""""""""""""""""""""
" markdown-preview.vim
"
"""""""""""""""""""""""

if !(has('python') || has('python3'))
echo 'Error: Required vim compile with +python or +python3'
finish
Expand Down Expand Up @@ -159,5 +158,5 @@ if !exists(':MarkdownPreviewWithCustomCodeStyle')
command -nargs=* MarkdownPreviewWithCustomCodeStyleCodeStyle call PreviewWithCustomCodeStyle(<f-args>)
endif

map <leader>m :MarkdownPreviewWithCustomCodeStyleCodeStyle GitHub zenburn<CR>
map <leader>m :MarkdownPreviewWithCustomCodeStyleCodeStyle GitHub solarized_light<CR>
1 change: 1 addition & 0 deletions pythonx/markdown_init.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8

import os
import vim
import platform
Expand Down
1 change: 1 addition & 0 deletions pythonx/markdown_preview.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8

import vim
import markdown_parser
import webbrowser
Expand Down
8 changes: 4 additions & 4 deletions pythonx/markdown_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8

__PLUGIN_VERSION__ = '2.2.1'
__AUTHOR__ = 'Tang Dongxin'
__MAIL__ = '[email protected]'
__DEBUG__ = False
__PLUGIN_VERSION__ = '2.2.2'
__AUTHOR__ = 'Tang Dongxin'
__MAIL__ = '[email protected]'
__DEBUG__ = False
Empty file removed resources/1.1.0
Empty file.
Empty file removed resources/2.0.0
Empty file.
Empty file removed resources/2.1.0
Empty file.
Empty file removed resources/2.1.1
Empty file.
Empty file removed resources/2.2.0
Empty file.

0 comments on commit 58f52db

Please sign in to comment.