octopress-quote-tag 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: df1f99da100f29bf0501f9147ff967125b49adfb
4
+ data.tar.gz: 4046b84f9c628b1ba5c8a6296f47d10ea6baf4df
5
+ SHA512:
6
+ metadata.gz: 24b9e591f6986e6563a08dcedf1893eed284ae88be7e14640669c597ed57f8165b95886b8772790060af0feac16792fed11c33488d8474146d2fdd0376564934
7
+ data.tar.gz: 5c631341c479156ee2ceae5d8cb0e52d4a6eff8e43389a21d0664624d734635844c40e9b4650a1b2b7631873236021854dba3b5849067e7d9f72a30e497a8b0e
data/.clash.yml ADDED
@@ -0,0 +1,2 @@
1
+ build: true
2
+ compare: _expected _site
data/.gitignore ADDED
@@ -0,0 +1,23 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
23
+ _site
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ script: bundle exec clash test
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in octopress_render_tag.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Brandon Mathis
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,103 @@
1
+ # Octopress Quote Tag
2
+
3
+ Easy HTML5 blockquotes for Jekyll sites.
4
+
5
+ [![Build Status](https://travis-ci.org/octopress/quote-tag.svg)](https://travis-ci.org/octopress/quote-tag)
6
+ [![Gem Version](http://img.shields.io/gem/v/octopress-quote-tag.svg)](https://rubygems.org/gems/octopress-quote-tag)
7
+ [![License](http://img.shields.io/:license-mit-blue.svg)](http://octopress.mit-license.org)
8
+
9
+ ## Installation
10
+
11
+ ### Using Bundler
12
+
13
+ Add this gem to your site's Gemfile in the `:jekyll_plugins` group:
14
+
15
+ group :jekyll_plugins do
16
+ gem 'octopress-quote-tag'
17
+ end
18
+
19
+ Then install the gem with Bundler
20
+
21
+ $ bundle
22
+
23
+ ### Manual Installation
24
+
25
+ $ gem install octopress-quote-tag
26
+
27
+ Then add the gem to your Jekyll configuration.
28
+
29
+ gems:
30
+ -octopress-quote-tag
31
+
32
+ ## Usage
33
+
34
+ ```
35
+ {% blockquote [options] %}
36
+ Some great quote
37
+ {% endblockquote %}
38
+ ```
39
+
40
+ Options:
41
+
42
+ | option | default | description |
43
+ |:-------|:--------|:------------|
44
+ | author | nil | String: Quote author |
45
+ | title | nil | String: Title of work cited |
46
+ | url | nil | String: Link to work |
47
+
48
+
49
+ ### Example
50
+
51
+ ```
52
+ {% quote author:"Bob McAwesome" url:"http://example.com" title:"Great Wisdom" %}
53
+ Never pet a burning dog.
54
+ {% endquote %}
55
+ ```
56
+
57
+ ```
58
+ <figure class='quote'>
59
+ <blockquote>
60
+ <p>Some great quote</p>
61
+ </blockquote>
62
+ <figcaption class='quote-source'>
63
+ <span class='quote-author'>Bob McAwesome</span>
64
+ <cite class='quote-title'><a href='http://example.com'>Great Wisdom</a></cite>
65
+ </figcaption>
66
+ </figure>
67
+ ```
68
+
69
+ ## Why?
70
+
71
+ In Markdown Blockquotes are simple but attribution isn't.
72
+ Also, if you want semantic HTML, you'll have to write your own.
73
+
74
+ ```
75
+ > Some cool quote
76
+
77
+ # becomes:
78
+
79
+ <blockquote>
80
+ <p>Some cool quote</p>
81
+ </blockquote>
82
+ ```
83
+
84
+ But what if you want to cite an author or a source?
85
+
86
+
87
+ ```
88
+ > Some cool quote
89
+ > - Bob McAwesome
90
+
91
+ # becomes:
92
+
93
+ <blockquote>
94
+ <p>Some cool quote
95
+ - Bob McAwesome</p>
96
+ </blockquote>
97
+ ```
98
+
99
+ Which doesn't work at all since a browser will see it as:
100
+
101
+ ```
102
+ Some cool quote - Bob McAwesome
103
+ ```
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,142 @@
1
+ require "octopress-quote-tag/version"
2
+ require "jekyll"
3
+
4
+ module Octopress
5
+ module Tags
6
+ module QuoteTag
7
+ class Tag < Liquid::Block
8
+ FullCiteWithTitle = /(\S.*)\s+(https?:\/\/)(\S+)\s+(.+)/i
9
+ FullCite = /(\S.*)\s+(https?:\/\/)(\S+)/i
10
+ AuthorTitle = /([^,]+),([^,]+)/
11
+ Author = /(.+)/
12
+
13
+ def initialize(tag_name, markup, tokens)
14
+ super
15
+
16
+ if tag_name.strip == 'blockquote'
17
+ @options = parse_legacy_markup(markup)
18
+ else
19
+ @options = parse_markup(%w{author title url}, markup)
20
+ end
21
+ end
22
+
23
+ # Parse string into hash object
24
+ def parse_markup(keys, markup)
25
+ options = {}
26
+ keys.each do |k|
27
+ value = extract(markup, /\s*#{k}:\s*(("(.+?)")|('(.+?)')|(\S+))/i, [3, 5, 6])
28
+ options[k] = value
29
+ end
30
+ options
31
+ end
32
+
33
+ def extract(input, regexp, indices_to_try = [1], default = nil)
34
+ thing = input.match(regexp)
35
+ if thing.nil?
36
+ default
37
+ else
38
+ indices_to_try.each do |index|
39
+ return thing[index] if thing[index]
40
+ end
41
+ end
42
+ end
43
+
44
+ # Use legacy regex matching to parse markup
45
+ def parse_legacy_markup(markup)
46
+ options = {}
47
+ if markup =~ FullCiteWithTitle
48
+ options['author'] = $1
49
+ options['url'] = $2 + $3
50
+ options['title'] = $4.strip
51
+ elsif markup =~ FullCite
52
+ options['author'] = $1
53
+ options['url'] = $2 + $3
54
+ elsif markup =~ AuthorTitle
55
+ options['author'] = $1
56
+ options['title'] = $2.strip
57
+ elsif markup =~ Author
58
+ options['author'] = $1
59
+ end
60
+ options
61
+ end
62
+
63
+ def render(context)
64
+ quote = "<blockquote>#{parse_content(super, context).strip}</blockquote>"
65
+ if cap = figcaption
66
+ quote = "<figure class='quote'>#{quote}#{cap}</figure>"
67
+ end
68
+ quote
69
+ end
70
+
71
+ def parse_content(content, context)
72
+ path = context.environments.first['page']['path']
73
+ ext = File.extname(path[1..-1])[1..-1]
74
+ site = context.registers[:site]
75
+ mdext = site.config['markdown_ext']
76
+ txext = site.config['textile_ext']
77
+
78
+ if mdext.include? ext
79
+ site.getConverterImpl(Jekyll::Converters::Markdown).convert(content)
80
+ elsif txext.include? ext
81
+ site.getConverterImpl(Jekyll::Converters::Textile).convert(content)
82
+ else
83
+ "<p>" + content.strip.gsub(/\n\n/, "<p>\n\n</p>") + "</p>"
84
+ end
85
+ end
86
+
87
+ def figcaption
88
+ if @options['author'] || @options['url'] || @options['title']
89
+ "<figcaption class='quote-source'>#{author || ''}#{title || ''}</figcaption>"
90
+ end
91
+ end
92
+
93
+ def author
94
+ if @options['author']
95
+ if !@options['title']
96
+ text = link(@options['author'])
97
+ else
98
+ text = @options['author']
99
+ end
100
+ "<span class='quote-author'>#{text}</span>"
101
+ end
102
+ end
103
+
104
+ def link(text)
105
+ if @options['url']
106
+ "<a class='quote-link' href='#{@options['url']}'>#{text}</a>"
107
+ else
108
+ text
109
+ end
110
+ end
111
+
112
+ def title
113
+ if @options['title']
114
+ "<cite class='quote-title'>#{link(@options['title'])}</cite>"
115
+ end
116
+ end
117
+
118
+ def trim_url(full_url)
119
+ parts = []
120
+ short_url = full_url.match(/https?:\/\/(.+)/)[1][0..30]
121
+ short_url << '…' unless short_url == full_url
122
+ short_url
123
+ end
124
+ end
125
+ end
126
+ end
127
+ end
128
+
129
+ Liquid::Template.register_tag('blockquote', Octopress::Tags::QuoteTag::Tag)
130
+ Liquid::Template.register_tag('quote', Octopress::Tags::QuoteTag::Tag)
131
+
132
+ if defined? Octopress::Docs
133
+ Octopress::Docs.add({
134
+ name: "Octopress Qote Tag",
135
+ gem: "octopress-quote-tag",
136
+ description: "Easy HTML5 blockquotes for Jekyll sites.",
137
+ path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
138
+ source_url: "https://github.com/octopress/quote-tag",
139
+ version: Octopress::Tags::QuoteTag::VERSION
140
+ })
141
+ end
142
+
@@ -0,0 +1,7 @@
1
+ module Octopress
2
+ module Tags
3
+ module QuoteTag
4
+ VERSION = "1.0.0"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'octopress-quote-tag/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "octopress-quote-tag"
8
+ spec.version = Octopress::Tags::QuoteTag::VERSION
9
+ spec.authors = ["Brandon Mathis"]
10
+ spec.email = ["brandon@imathis.com"]
11
+ spec.summary = %q{Nicely formatted HTML5 blockquotes for Jekyll sites}
12
+ spec.description = %q{Nicely formatted HTML5 blockquotes for Jekyll sites}
13
+ spec.homepage = "https://github.com/octopress/quote-tag"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_runtime_dependency "jekyll"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.6"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "clash"
26
+ spec.add_development_dependency "RedCloth"
27
+
28
+ if RUBY_VERSION >= "2"
29
+ spec.add_development_dependency "pry-byebug"
30
+ end
31
+
32
+ end
data/test/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: "../"
data/test/_config.yml ADDED
@@ -0,0 +1,13 @@
1
+ # Site settings
2
+ title: Your awesome title
3
+ email: your-email@domain.com
4
+ baseurl: ""
5
+ url: "http://yourdomain.com"
6
+
7
+ exclude:
8
+ - Gemfile*
9
+
10
+ # Build settings
11
+ markdown: kramdown
12
+ gems:
13
+ - octopress-quote-tag
@@ -0,0 +1,15 @@
1
+ <blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.</p></blockquote>
2
+
3
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.</p></blockquote><figcaption class='quote-source'><span class='quote-author'>Bobby Jones </span></figcaption></figure>
4
+
5
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.</p></blockquote><figcaption class='quote-source'><span class='quote-author'>Bobby Jones</span><cite class='quote-title'>Some Book</cite></figcaption></figure>
6
+
7
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.</p></blockquote><figcaption class='quote-source'><span class='quote-author'>Bobby Jones</span><cite class='quote-title'><a class='quote-link' href='http://foo.com/blahboogersblahasdfoasdfasdf'>Some Article</a></cite></figcaption></figure>
8
+
9
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.</p></blockquote><figcaption class='quote-source'><span class='quote-author'><a class='quote-link' href='http://foo.com/blahboogersblahasdfoasdfasdf'>Bobby Jones</a></span></figcaption></figure>
10
+
11
+ <blockquote><p>Here's a paragraph where something happens<p>
12
+
13
+ </p>Here's another paragraph where something happens</p></blockquote>
14
+
15
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.</p></blockquote><figcaption class='quote-source'><span class='quote-author'>Bobby Jones</span><cite class='quote-title'>Some Book</cite></figcaption></figure>
@@ -0,0 +1,13 @@
1
+ <blockquote><p><strong>Quick</strong> wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! “Now fax quiz Jack! “ my brave ghost pled.</p></blockquote>
2
+
3
+ <figure class="quote"><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. <a href="http://timecube.com">How quickly</a> daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! “Now fax quiz Jack! “ my brave ghost pled.</p></blockquote><figcaption class="quote-source"><span class="quote-author">Bobby Jones </span></figcaption></figure>
4
+
5
+ <figure class="quote"><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! “Now fax quiz Jack! “ my brave ghost pled.</p></blockquote><figcaption class="quote-source"><span class="quote-author">Bobby Jones</span><cite class="quote-title">Some Book</cite></figcaption></figure>
6
+
7
+ <figure class="quote"><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! “Now fax quiz Jack! “ my brave ghost pled.</p></blockquote><figcaption class="quote-source"><span class="quote-author">Bobby Jones</span><cite class="quote-title"><a class="quote-link" href="http://foo.com/blahboogersblahasdfoasdfasdf">Some Article</a></cite></figcaption></figure>
8
+
9
+ <figure class="quote"><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! “Now fax quiz Jack! “ my brave ghost pled.</p></blockquote><figcaption class="quote-source"><span class="quote-author"><a class="quote-link" href="http://foo.com/blahboogersblahasdfoasdfasdf">Bobby Jones</a></span></figcaption></figure>
10
+
11
+ <blockquote><p>Here’s a paragraph where something happens</p>
12
+
13
+ <p>Here’s another paragraph where something happens</p></blockquote>
@@ -0,0 +1,7 @@
1
+ <blockquote><p><em>Quick</em> wafting zephyrs &#8220;vex&#8221; bold Jim&#8230; Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! &quot;Now fax quiz Jack! &quot; my brave ghost pled.</p></blockquote>
2
+ <figure class='quote'><blockquote><p>Quick <i>wafting</i> <del>zephyrs</del> vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! &quot;Now fax quiz Jack! &quot; my brave ghost pled.</p><p></blockquote><figcaption class='quote-source'><span class='quote-author'>Bobby Jones </span></figcaption></figure></p>
3
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! &quot;Now fax quiz Jack! &quot; my brave ghost pled.</p><p></blockquote><figcaption class='quote-source'><span class='quote-author'>Bobby Jones</span><cite class='quote-title'>Some Book</cite></figcaption></figure></p>
4
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! &quot;Now fax quiz Jack! &quot; my brave ghost pled.</p><p></blockquote><figcaption class='quote-source'><span class='quote-author'>Bobby Jones</span><cite class='quote-title'><a class='quote-link' href='http://foo.com/blahboogersblahasdfoasdfasdf'>Some Article</a></cite></figcaption></figure></p>
5
+ <figure class='quote'><blockquote><p>Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! &quot;Now fax quiz Jack! &quot; my brave ghost pled.</p><p></blockquote><figcaption class='quote-source'><span class='quote-author'><a class='quote-link' href='http://foo.com/blahboogersblahasdfoasdfasdf'>Bobby Jones</a></span></figcaption></figure></p>
6
+ <blockquote><p>Here&#8217;s a paragraph where something happens</p>
7
+ <p>Here&#8217;s another paragraph where something happens</p></blockquote>
data/test/index.html ADDED
@@ -0,0 +1,32 @@
1
+ ---
2
+ ---
3
+
4
+ {% blockquote %}
5
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
6
+ {% endblockquote %}
7
+
8
+ {% blockquote Bobby Jones %}
9
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
10
+ {% endblockquote %}
11
+
12
+ {% blockquote Bobby Jones, Some Book %}
13
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
14
+ {% endblockquote %}
15
+
16
+ {% blockquote Bobby Jones http://foo.com/blahboogersblahasdfoasdfasdf Some Article %}
17
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
18
+ {% endblockquote %}
19
+
20
+ {% blockquote Bobby Jones http://foo.com/blahboogersblahasdfoasdfasdf %}
21
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
22
+ {% endblockquote %}
23
+
24
+ {% blockquote %}
25
+ Here's a paragraph where something happens
26
+
27
+ Here's another paragraph where something happens
28
+ {% endblockquote %}
29
+
30
+ {% quote author:"Bobby Jones" title:"Some Book" %}
31
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
32
+ {% endquote %}
data/test/markdown.md ADDED
@@ -0,0 +1,28 @@
1
+ ---
2
+ ---
3
+
4
+ {% blockquote %}
5
+ **Quick** wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
6
+ {% endblockquote %}
7
+
8
+ {% blockquote Bobby Jones %}
9
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. [How quickly](http://timecube.com) daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
10
+ {% endblockquote %}
11
+
12
+ {% blockquote Bobby Jones, Some Book %}
13
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
14
+ {% endblockquote %}
15
+
16
+ {% blockquote Bobby Jones http://foo.com/blahboogersblahasdfoasdfasdf Some Article %}
17
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
18
+ {% endblockquote %}
19
+
20
+ {% blockquote Bobby Jones http://foo.com/blahboogersblahasdfoasdfasdf %}
21
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
22
+ {% endblockquote %}
23
+
24
+ {% blockquote %}
25
+ Here's a paragraph where something happens
26
+
27
+ Here's another paragraph where something happens
28
+ {% endblockquote %}
@@ -0,0 +1,28 @@
1
+ ---
2
+ ---
3
+
4
+ {% blockquote %}
5
+ _Quick_ wafting zephyrs "vex" bold Jim... Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
6
+ {% endblockquote %}
7
+
8
+ {% blockquote Bobby Jones %}
9
+ Quick __wafting__ -zephyrs- vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
10
+ {% endblockquote %}
11
+
12
+ {% blockquote Bobby Jones, Some Book %}
13
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
14
+ {% endblockquote %}
15
+
16
+ {% blockquote Bobby Jones http://foo.com/blahboogersblahasdfoasdfasdf Some Article %}
17
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
18
+ {% endblockquote %}
19
+
20
+ {% blockquote Bobby Jones http://foo.com/blahboogersblahasdfoasdfasdf %}
21
+ Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack! " my brave ghost pled.
22
+ {% endblockquote %}
23
+
24
+ {% blockquote %}
25
+ Here's a paragraph where something happens
26
+
27
+ Here's another paragraph where something happens
28
+ {% endblockquote %}
metadata ADDED
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: octopress-quote-tag
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Brandon Mathis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: clash
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: RedCloth
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Nicely formatted HTML5 blockquotes for Jekyll sites
98
+ email:
99
+ - brandon@imathis.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".clash.yml"
105
+ - ".gitignore"
106
+ - ".travis.yml"
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - lib/octopress-quote-tag.rb
112
+ - lib/octopress-quote-tag/version.rb
113
+ - octopress-quote-tag.gemspec
114
+ - test/Gemfile
115
+ - test/_config.yml
116
+ - test/_expected/index.html
117
+ - test/_expected/markdown.html
118
+ - test/_expected/textile.html
119
+ - test/index.html
120
+ - test/markdown.md
121
+ - test/textile.textile
122
+ homepage: https://github.com/octopress/quote-tag
123
+ licenses:
124
+ - MIT
125
+ metadata: {}
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubyforge_project:
142
+ rubygems_version: 2.2.2
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: Nicely formatted HTML5 blockquotes for Jekyll sites
146
+ test_files:
147
+ - test/Gemfile
148
+ - test/_config.yml
149
+ - test/_expected/index.html
150
+ - test/_expected/markdown.html
151
+ - test/_expected/textile.html
152
+ - test/index.html
153
+ - test/markdown.md
154
+ - test/textile.textile