paru 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paru.rb +16 -0
- data/lib/paru/error.rb +16 -0
- data/lib/paru/filter.rb +17 -1
- data/lib/paru/filter/alignment.rb +16 -0
- data/lib/paru/filter/ast_manipulation.rb +16 -0
- data/lib/paru/filter/attr.rb +16 -0
- data/lib/paru/filter/block.rb +16 -0
- data/lib/paru/filter/block_quote.rb +16 -0
- data/lib/paru/filter/bullet_list.rb +16 -0
- data/lib/paru/filter/citation.rb +16 -0
- data/lib/paru/filter/cite.rb +16 -0
- data/lib/paru/filter/code.rb +16 -0
- data/lib/paru/filter/code_block.rb +16 -0
- data/lib/paru/filter/definition_list.rb +16 -0
- data/lib/paru/filter/definition_list_item.rb +16 -0
- data/lib/paru/filter/div.rb +16 -0
- data/lib/paru/filter/document.rb +17 -1
- data/lib/paru/filter/emph.rb +16 -0
- data/lib/paru/filter/empty_block.rb +16 -0
- data/lib/paru/filter/empty_inline.rb +16 -0
- data/lib/paru/filter/header.rb +16 -0
- data/lib/paru/filter/horizontal_rule.rb +16 -0
- data/lib/paru/filter/image.rb +16 -0
- data/lib/paru/filter/inline.rb +16 -0
- data/lib/paru/filter/line_block.rb +16 -0
- data/lib/paru/filter/line_break.rb +16 -0
- data/lib/paru/filter/link.rb +16 -0
- data/lib/paru/filter/list.rb +16 -0
- data/lib/paru/filter/list_attributes.rb +16 -0
- data/lib/paru/filter/markdown.rb +18 -2
- data/lib/paru/filter/math.rb +16 -0
- data/lib/paru/filter/meta.rb +16 -0
- data/lib/paru/filter/meta_blocks.rb +16 -0
- data/lib/paru/filter/meta_bool.rb +16 -0
- data/lib/paru/filter/meta_inlines.rb +16 -0
- data/lib/paru/filter/meta_list.rb +16 -0
- data/lib/paru/filter/meta_map.rb +23 -0
- data/lib/paru/filter/meta_string.rb +16 -0
- data/lib/paru/filter/meta_value.rb +16 -0
- data/lib/paru/filter/node.rb +16 -0
- data/lib/paru/filter/note.rb +16 -0
- data/lib/paru/filter/null.rb +16 -0
- data/lib/paru/filter/ordered_list.rb +16 -0
- data/lib/paru/filter/para.rb +16 -0
- data/lib/paru/filter/plain.rb +16 -0
- data/lib/paru/filter/quoted.rb +16 -0
- data/lib/paru/filter/raw_block.rb +16 -0
- data/lib/paru/filter/raw_inline.rb +16 -0
- data/lib/paru/filter/small_caps.rb +16 -0
- data/lib/paru/filter/soft_break.rb +16 -0
- data/lib/paru/filter/space.rb +16 -0
- data/lib/paru/filter/span.rb +16 -0
- data/lib/paru/filter/str.rb +16 -0
- data/lib/paru/filter/strikeout.rb +16 -0
- data/lib/paru/filter/strong.rb +16 -0
- data/lib/paru/filter/subscript.rb +16 -0
- data/lib/paru/filter/superscript.rb +16 -0
- data/lib/paru/filter/table.rb +16 -0
- data/lib/paru/filter/table_row.rb +16 -0
- data/lib/paru/filter/target.rb +16 -0
- data/lib/paru/filter/version.rb +16 -0
- data/lib/paru/pandoc.rb +16 -0
- data/lib/paru/pandoc_options.yaml +16 -0
- data/lib/paru/selector.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c83324117fee453bf3031bd1f6f6d9b66add4888
|
4
|
+
data.tar.gz: 331a7af6160201098413f75d356e8a8d0cb263f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 366cd44bfd6ed8a1fd80394dd1aab28c7bbcb1f366e15afc0f7812054a1cf894facda59d2659db80395d7078386a6af42a7970727b5e2c7dcb437b3f83249e60
|
7
|
+
data.tar.gz: 5c9fb0387b5f5dca3457a8ccec3e91a0fb9c2543b27dab3ec84567bac373ba9fbbddeff8eedbf653b58eb3490e5760cd86004e54509e7742c1c221e75dd6afe5
|
data/lib/paru.rb
CHANGED
@@ -1,2 +1,18 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
require "paru/pandoc"
|
2
18
|
require "paru/filter"
|
data/lib/paru/error.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
class Error < RuntimeError
|
3
19
|
end
|
data/lib/paru/filter.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
|
3
19
|
require_relative "./selector"
|
@@ -61,7 +77,7 @@ module Paru
|
|
61
77
|
instance_eval(&block)
|
62
78
|
end
|
63
79
|
|
64
|
-
puts @doc.
|
80
|
+
puts @doc.to_JSON
|
65
81
|
end
|
66
82
|
|
67
83
|
def current_node
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
module ASTManipulation
|
data/lib/paru/filter/attr.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
class Attr
|
data/lib/paru/filter/block.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
require_relative "./node"
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# BlockQuote [Block]
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# BulletList [[Block]]
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
data/lib/paru/filter/citation.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
require_relative "./inline"
|
data/lib/paru/filter/cite.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# Cite [Citation] [Inline]
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
data/lib/paru/filter/code.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# Code Attr String
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# CodeBlock Attr String
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# DefinitionList [([Inline], [[Block]])]
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
require_relative "./block"
|
data/lib/paru/filter/div.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# Div Attr [Block]
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
data/lib/paru/filter/document.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
|
@@ -52,7 +68,7 @@ module Paru
|
|
52
68
|
}
|
53
69
|
end
|
54
70
|
|
55
|
-
def
|
71
|
+
def to_JSON
|
56
72
|
to_ast.to_json
|
57
73
|
end
|
58
74
|
|
data/lib/paru/filter/emph.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
# Emph [Inline]
|
2
18
|
module Paru
|
3
19
|
module PandocFilter
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
require_relative "./block"
|
@@ -1,3 +1,19 @@
|
|
1
|
+
# Copyright 2015, 2016 Huub de Beer <Huub@heerdebeer.org>
|
2
|
+
#
|
3
|
+
# This file is part of Paru
|
4
|
+
#
|
5
|
+
# Paru is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# Paru is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Paru. If not, see <http://www.gnu.org/licenses/>.
|
1
17
|
module Paru
|
2
18
|
module PandocFilter
|
3
19
|
require_relative "./inline"
|