https://github.com/jwillbold/pug-paste
An Atom IDE plugin, that auto-transforms HTML code in the clipboard to PUG
https://github.com/jwillbold/pug-paste
atom atom-package clipboard html pug
Last synced: 5 months ago
JSON representation
An Atom IDE plugin, that auto-transforms HTML code in the clipboard to PUG
- Host: GitHub
- URL: https://github.com/jwillbold/pug-paste
- Owner: jwillbold
- License: mit
- Created: 2019-09-17T14:31:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-18T11:51:40.000Z (almost 7 years ago)
- Last Synced: 2025-04-14T20:46:30.637Z (about 1 year ago)
- Topics: atom, atom-package, clipboard, html, pug
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pug-paste
An Atom IDE plugin that automatically transforms HTML code to PUG code, when pasting into a PUG file.
The plugin first checks whether the pasting target is a pug file. Afterwards, it is checked whether the pasted
text is HTML. If this is the case, the pasted text gets converted.
````, ```` and ```` tags are ignored.
The HTML to PUG conversion is done via the node.js package 'html2pug'.
https://www.npmjs.com/package/html2pug
## Usage
Enable the auto-conversion through "pug-paste:enable-clipboard-transform".
1. Press ``Ctrl + Shift + P``
2. Type ``pug-paste``
3. Select ``enable/disable/toggle-clipboard-transform``
## Install
``apm install pug-paste``
Or search ``pug-paste`` in the packages section of Atom.
## Configuration
Both, the detection whether the current file is a PUG file and whether the current code is HTML code are checked
with regexes. Both can be modified.