pseudohikiparser 0.0.0.8.develop → 0.0.0.9.develop
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -3
- data/bin/pseudohiki2html.rb +353 -261
- data/lib/pseudohiki/htmlformat.rb +68 -60
- data/lib/pseudohiki/inlineparser.rb +2 -1
- data/lib/pseudohiki/markdownformat.rb +29 -3
- data/lib/pseudohiki/plaintextformat.rb +9 -0
- data/lib/pseudohiki/version.rb +1 -1
- data/test/test_blockparser.rb +2 -2
- data/test/test_htmlelement.rb +2 -2
- data/test/test_htmlformat.rb +30 -3
- data/test/test_htmlplugin.rb +2 -2
- data/test/test_htmltemplate.rb +3 -3
- data/test/test_inlineparser.rb +4 -4
- data/test/test_markdownformat.rb +67 -2
- data/test/test_plaintextformat.rb +37 -3
- data/test/test_treestack.rb +3 -3
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c837bd7cafbfe2ca4d3356d41d419f058f80bdb
|
4
|
+
data.tar.gz: 6db584032f8226011930cc326d6b4c792df73fa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153e09b4d391c0d2c74262b9ccd2c41285686415e435c8e3bae1c4d3aacfc18916462c6f53543f81b9ce773fd985e0cb7154abfd6b759930b83cd5e6d4ae172a
|
7
|
+
data.tar.gz: 82c96e88ad295a05092d6f06ad68f6c17919aeacae58d247e6ee4d6feb9913d3575d569ed47401f90ce68ee6e1c784c6a46af11cfcebb35c2fdd28a7520db71b
|
data/README.md
CHANGED
@@ -86,6 +86,18 @@ the result will be saved in first_example.html.
|
|
86
86
|
|
87
87
|
For more options, please try `pseudohiki2html.rb --help`
|
88
88
|
|
89
|
+
#### Incompatible changes
|
90
|
+
|
91
|
+
From version 0.0.0.9, command line options are renamed as follows:
|
92
|
+
|
93
|
+
|old name |new name |note |
|
94
|
+
|---------------|-----------------|-----------------------------------------------------------|
|
95
|
+
|-f |-F |'-f' is now used as the short version of '--format-version'|
|
96
|
+
|-h |-f |'-h' is now used as the short version of '--help' |
|
97
|
+
|--html\_version|--format-version |other formats than html should be supported |
|
98
|
+
|--encoding |--format-encoding|'--encoding' is now used as the long version of '-E' option|
|
99
|
+
|- |--encoding |now same as '-E' option of MRI |
|
100
|
+
|
89
101
|
### module PseudoHiki
|
90
102
|
|
91
103
|
If you save the lines below as a ruby script and execute it:
|
@@ -128,8 +140,8 @@ Other than PseudoHiki::HtmlFormat, you can choose PseudoHiki::XhtmlFormat, Pseud
|
|
128
140
|
* Linking to an arbitrary URL - Maybe usable
|
129
141
|
* Preformatted text - Usable
|
130
142
|
* Text decoration - Partly supported
|
131
|
-
*
|
132
|
-
* The notation
|
143
|
+
* Means of escaping tags for inline decorations is only experimetal.
|
144
|
+
* The notation for inline literals by backquote tags(``) is converted into not \<tt\> element but \<code\> element.
|
133
145
|
* Headings - Usable
|
134
146
|
* Horizontal lines - Usable
|
135
147
|
* Lists - Usable
|
@@ -201,7 +213,7 @@ The visitor, [Xhtml5Format](https://github.com/nico-hn/PseudoHikiParser/blob/dev
|
|
201
213
|
|
202
214
|
#### A visitor for (Git Flavored) Markdown
|
203
215
|
|
204
|
-
The visitor, [MarkDownFormat](https://github.com/nico-hn/PseudoHikiParser/blob/develop/lib/pseudohiki/markdownformat.rb) too, is currently available only in the [develop branch](https://github.com/nico-hn/PseudoHikiParser/
|
216
|
+
The visitor, [MarkDownFormat](https://github.com/nico-hn/PseudoHikiParser/blob/develop/lib/pseudohiki/markdownformat.rb) too, is currently available only in the [develop branch](https://github.com/nico-hn/PseudoHikiParser/tree/develop/).
|
205
217
|
|
206
218
|
It's just in experimental stage.
|
207
219
|
|
@@ -255,4 +267,19 @@ The first paragraph
|
|
255
267
|
|_cell 1_|cell2 |
|
256
268
|
```
|
257
269
|
|
270
|
+
### Experimental
|
271
|
+
|
272
|
+
Tags for inline decorations are escaped when they are enclosed in plugin tags:
|
273
|
+
|
274
|
+
```
|
275
|
+
For example, {{''}} and {{==}} can be escaped.
|
276
|
+
And {{ {}} and {{} }} should be rendered as two left curly braces and two right curly braces respectively.
|
277
|
+
```
|
278
|
+
|
279
|
+
will be rendered as
|
280
|
+
```
|
281
|
+
For example, '' or == can be escaped.
|
282
|
+
And {{ and }} sould be rendered as two left curly braces and two right curly braces respectively.
|
283
|
+
```
|
284
|
+
|
258
285
|
### Not Implemented Yet
|