markup-email 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/markup_email/convert.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f12c8fa094f59193aaf2773c2974bc6d02fe759
|
|
4
|
+
data.tar.gz: 235fea787518116ac1142d84158c4fde1731f4ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03d7ea304093ad4e16ad8753e4aa6aa87fa6ffe1cb2759718957bec6e3a318dce469ac5c947d584f92910f190c50a4b87fb6480cc18f667036ca69b7208f3e44
|
|
7
|
+
data.tar.gz: f030c3b490b953509888f1314b6af893dc0f2fe564dd8ec5bc915ebfa8f40ac50ef2ba3db6a9f99f786602a8b7c996d2d5cd5bf7179cec5c4aa9e2c43dfb8938
|
data/README.md
CHANGED
|
@@ -24,9 +24,9 @@ Options:
|
|
|
24
24
|
|
|
25
25
|
| Option | Description |
|
|
26
26
|
| ----------------------|:-------------:|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
27
|
+
| `-s`, `--sanitize` | Sanitizes all html/markdown by removing potentially harmful tags or their attributes |
|
|
28
|
+
| `-t`, `--title` | The subsequent word/argument will be set as the title |
|
|
29
|
+
| `-h`, `--help, help` | Brings up the help menu (similar as this) |
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
Your chosen markdown requires these packages accordingly:
|
|
@@ -69,4 +69,4 @@ markup.write "#{file.split('.')[0..-2].join('.')}-converted.html" # Makes a new
|
|
|
69
69
|
# then the new file from `markup.write()` would be called
|
|
70
70
|
# "hello.there-converted.html"
|
|
71
71
|
```
|
|
72
|
-
If this is not sufficient, perhaps see the [rubydoc.info](http://www.rubydoc.info/gems/markup-email/
|
|
72
|
+
If this is not sufficient, perhaps see the [rubydoc.info](http://www.rubydoc.info/gems/markup-email/1.0.3/) for autogenerated documentation.
|
data/lib/markup_email/convert.rb
CHANGED
|
@@ -18,8 +18,8 @@ module MarkupEmail
|
|
|
18
18
|
def body
|
|
19
19
|
exit 1 unless package_tester
|
|
20
20
|
unfiltered = File.read(@file) #GitHub::Markup.render @file, File.read(@file) # Use me :'(
|
|
21
|
-
# ^^^^^ IN THE FUTURE, WHEN `HTML::Pipeline` HAS FIXED THEIR SHIT AND DON'T
|
|
22
|
-
# ^^^^^ A HUNDRED YEAR OLD VERSION OF `github-linguist` I WILL BE ABLE TO
|
|
21
|
+
# ^^^^^ IN THE FUTURE, WHEN `HTML::Pipeline` HAS FIXED THEIR SHIT AND DON'T USE
|
|
22
|
+
# ^^^^^ A HUNDRED YEAR OLD VERSION OF `github-linguist` I WILL BE ABLE TO SUPPORT
|
|
23
23
|
# ^^^^^ ALL THE MARKUPS LISTED IN THE `--help` SECTION...
|
|
24
24
|
context = {
|
|
25
25
|
:asset_root => "https://assets-cdn.github.com/images/icons",
|