Frontend for markuplint.
Sample install code using leaf.el.
(leaf markuplint :ensure t)
$ docker run markuplint/markuplint sample/002.html
<markuplint> warning: Attribute value is must quote on double quotation mark (attr-value-quotes) /markuplint/test/fixture/002.html:2:7
1: <!DOCTYPE•html>
2: <html•lang=en>
3: <head>
<markuplint> warning: Attribute value is must quote on double quotation mark (attr-value-quotes) /markuplint/test/fixture/002.html:4:8
3: <head>
4: → <meta•charset=UTF-8>
5: → <meta•name=viewport•content='width=device-width,•initial-scale=1.0'>
<markuplint> warning: Attribute value is must quote on double quotation mark (attr-value-quotes) /markuplint/test/fixture/002.html:5:8
...
Good, markuplint
invoked from Emacs should be nice.
Please set markuplint-executable-preset
to 'docker
.
- [Optional] Install node
git clone https://github.com/anyenv/anyenv ~/.anyenv echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bash_profile echo '$(anyenv init -)' >> ~/.bash_profile anyenv install --init anyenv install nodenv eval "$(anyenv init -)" # configure PATH nodenv install -l # list available versions nodenv install 14.13.0 # install latest stable version nodenv global 14.13.0 # use it in global
- Install markuplint
- Install in global
npm -g install markuplint
- Install in each project
npm install markuplint --save-dev
- Install in global
- Testing markuplint
$ nodenv versions * 14.13.0 (set by /home/conao/.anyenv/envs/nodenv/version) $ which node /home/conao/.anyenv/envs/nodenv/shims/node $ which npx /home/conao/.anyenv/envs/nodenv/shims/npx $ npx markuplint --verision 1.0.0 $ npx markuplint sample/002.html <markuplint> warning: Attribute value is must quote on double quotation mark (attr-value-quotes) /home/conao/dev/repos/markuplint.el/sample/002.html:2:7 1: <!DOCTYPE•html> 2: <html•lang=en> 3: <head> <markuplint> warning: Attribute value is must quote on double quotation mark (attr-value-quotes) /home/conao/dev/repos/markuplint.el/sample/002.html:4:8 3: <head> 4: → <meta•charset=UTF-8> 5: → <meta•name=viewport•content='width=device-width,•initial-scale=1.0'> ...
Good,
markuplint
invoked from Emacs should be nice.Please set
markuplint-executable-preset
to'npx
.
Any feedback or suggestions are welcome!
You can use github issues, but you can also use Slack if you want a more casual conversation.
We welcome PR!
- keg
cd ~/ hub clone conao3/keg .keg export PATH="$HOME/.keg/bin:$PATH"
Below operation flow is recommended.
git branch [feature-branch] # Create branch named [feature-branch]
git checkout [feature-branch] # Checkout branch named [feature-branch]
# <edit loop>
emacs markuplint.el # Edit something you want
make test # Test markuplint
git commit -am "brabra" # Commit (auto-run test before commit)
# </edit loop>
hub fork # Create fork at GitHub
git push [user] [feature-branch] # Push feature-branch to your fork
hub pull-request # Create pull-request
General Public License Version 3 (GPLv3) Copyright (c) Naoya Yamashita - https://conao3.com https://github.com/conao3/markuplint.el/blob/master/LICENSE
- Naoya Yamashita (conao3)