-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
6,998 additions
and
12,929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2023 | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"indent": [2, 2, {"SwitchCase": 1}], | ||
"quotes": [2, "single"], | ||
"linebreak-style": [2, "unix"], | ||
"camelcase": [2, {"properties": "always"}], | ||
"brace-style": [2, "1tbs", {"allowSingleLine": true}] | ||
}, | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"browser": false | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export type PluginOptions = { | ||
/** | ||
The name of the tag for the plugin to use. | ||
@default 'outlook' | ||
@example | ||
```js | ||
import posthtml from 'posthtml' | ||
import posthtmlMso from 'posthtml-mso' | ||
const html = ` | ||
<mso only="2013">Show in Outlook 2013</mso> | ||
<not-mso>Hide from Outlook</not-mso> | ||
` | ||
posthtml([ | ||
posthtmlMso({tag: 'mso'}) | ||
]) | ||
.process(html) | ||
.then(result => console.log(result.html)) | ||
// Result: | ||
// <!--[if mso 15]>Show in Outlook 2013<![endif]--> | ||
// <!--[if !mso]><!-->Hide from Outlook<!--<![endif]--> | ||
``` | ||
*/ | ||
tag?: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.