Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vimwiki-markdown
Readme
vimwiki markdown file to html with syntax highlighting.
pip install vimwiki-markdown
Add the following to your ~/.vimrc
:
let g:vimwiki_list = [{
\ 'path': '~/vimwiki',
\ 'template_path': '~/vimwiki/templates/',
\ 'template_default': 'default',
\ 'syntax': 'markdown',
\ 'ext': '.md',
\ 'path_html': '~/vimwiki/site_html/',
\ 'custom_wiki2html': 'vimwiki_markdown',
\ 'template_ext': '.tpl'}]
The following markdown extensions are activated by default:
But you can add more extensions using VIMWIKI_MARKDOWN_EXTENSIONS
environment variable:
{"toc": {"baselevel": 2 }, "nl2br": {}}
.
Note: {}
configuration implies no configuration.["toc", "nl2br"]
.toc,nl2br
.Warning Deprecated formats will be remove in next major release
Syntax highlighting is provided by Pygments, which will try to guess language by default.
You can use regular markdown indented code blocks:
:::python
for value range(42):
print(value)
Or Fenced Code Blocks
```python
for value range(42):
print(value)
```
You can also highlight line using hl_lines
argument:
```python hl_lines="1 3"
for value range(42):
print(value)
```
Pygments can generate CSS rules for you. Just run the following command from the command line:
pygmentize -S default -f html -a .codehilite > styles.css
If you would like to use a different theme, swap out default
for the desired
theme. For a list of themes installed on your system, run the following
command:
pygmentize -L style
If you are lazy you can just use the one in this repository inside css
directory which provide the monokai
theme.
The following environment variables are available, but not mandatory:
VIMWIKI_TEMPLATE_PATH
: path to vimwiki HTML templateVIMWIKI_TEMPLATE_DEFAULT
: default HTML template nameVIMWIKI_TEMPLATE_EXT
: default HTML template extensionVIMWIKI_ROOT_PATH
: vimwiki root pathIf not set vimwiki_markdown
will use
the default template defined in the source code.
FAQs
vimwiki-markdown: vimwiki markdown file to html with syntax highlighting.
We found that vimwiki-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.