markly 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/ext/markly/markly.c +15 -0
  4. data/ext/markly/render.c +5 -3
  5. data/lib/markly/node.rb +15 -1
  6. data/lib/markly/renderer/html.rb +14 -13
  7. data/lib/markly/version.rb +1 -1
  8. data/license.md +3 -2
  9. data/readme.md +9 -2
  10. data.tar.gz.sig +0 -0
  11. metadata +8 -87
  12. metadata.gz.sig +0 -0
  13. data/conduct.md +0 -133
  14. data/ext/markly/Makefile +0 -269
  15. data/ext/markly/arena.o +0 -0
  16. data/ext/markly/autolink.o +0 -0
  17. data/ext/markly/blocks.o +0 -0
  18. data/ext/markly/buffer.o +0 -0
  19. data/ext/markly/cmark.o +0 -0
  20. data/ext/markly/cmark_ctype.o +0 -0
  21. data/ext/markly/commonmark.o +0 -0
  22. data/ext/markly/core-extensions.o +0 -0
  23. data/ext/markly/ext_scanners.o +0 -0
  24. data/ext/markly/footnotes.o +0 -0
  25. data/ext/markly/houdini_href_e.o +0 -0
  26. data/ext/markly/houdini_html_e.o +0 -0
  27. data/ext/markly/houdini_html_u.o +0 -0
  28. data/ext/markly/html.o +0 -0
  29. data/ext/markly/inlines.o +0 -0
  30. data/ext/markly/iterator.o +0 -0
  31. data/ext/markly/latex.o +0 -0
  32. data/ext/markly/linked_list.o +0 -0
  33. data/ext/markly/man.o +0 -0
  34. data/ext/markly/map.o +0 -0
  35. data/ext/markly/markly.o +0 -0
  36. data/ext/markly/markly.so +0 -0
  37. data/ext/markly/node.o +0 -0
  38. data/ext/markly/plaintext.o +0 -0
  39. data/ext/markly/plugin.o +0 -0
  40. data/ext/markly/references.o +0 -0
  41. data/ext/markly/registry.o +0 -0
  42. data/ext/markly/render.o +0 -0
  43. data/ext/markly/scanners.o +0 -0
  44. data/ext/markly/strikethrough.o +0 -0
  45. data/ext/markly/syntax_extension.o +0 -0
  46. data/ext/markly/table.o +0 -0
  47. data/ext/markly/tagfilter.o +0 -0
  48. data/ext/markly/tasklist.o +0 -0
  49. data/ext/markly/utf8.o +0 -0
  50. data/ext/markly/xml.o +0 -0
  51. data/lib/markly/markly.so +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1310e3844026b647880087792bf1164045d35b0c44826f157d4cefb4178790e4
4
- data.tar.gz: e249254053f9783409ddb2bfbae0e4893cca4e6a3790c20f468f36e959b5c115
3
+ metadata.gz: 43375fea8b85dacafc8695a8f8546d0455e700e3892df323885d1bc79ad52b33
4
+ data.tar.gz: a28cc4103041dc495b4688ab322869f2b5ecba86d8fc2e270dfc1daa280a78bb
5
5
  SHA512:
6
- metadata.gz: 82eca6f6c81aa732ca86884d83618b1a2563ea967cd0a5c5caeb0bf420419c7da89b996d2069e4a95e2ba8cde8f328dd785d0cfb3970da01c72425de0798e9a4
7
- data.tar.gz: 617a6e5af8ff414d28304c49ac07dbf91e5ef9f7496bba3d4f701d2a9975711e9cf33008b17860aab4d38602814ac817d5f00aa9f82f63c0c0b7c9a2d98839fe
6
+ metadata.gz: 26ef4ee817faa860607cc631b891502070d200c63563c5f929c888f86d1c529741dc4f350ff7333748f427482e61f572aa4c73cf440ddf6ef70273f056d6eaf3
7
+ data.tar.gz: a28eafe5dbc4b175efbac7ee04c16f9b29b90002f14e4ff3b1c8fa646d807b603fd4f0ab6db75ea9f2489942bb17c6547ffd4a3c6aff3baefba6412fdc9fcdba
checksums.yaml.gz.sig CHANGED
Binary file
data/ext/markly/markly.c CHANGED
@@ -13,6 +13,8 @@ static VALUE rb_Markly_Node;
13
13
  static VALUE rb_Markly_Parser;
14
14
 
15
15
  static VALUE sym_document;
16
+ static VALUE sym_custom_block;
17
+ static VALUE sym_custom_inline;
16
18
  static VALUE sym_blockquote;
17
19
  static VALUE sym_list;
18
20
  static VALUE sym_list_item;
@@ -188,6 +190,7 @@ static VALUE rb_Markly_Parser_parse(VALUE self, VALUE text) {
188
190
  * type - A {Symbol} representing the node to be created. Must be one of the
189
191
  * following:
190
192
  * - `:document`
193
+ * - `:custom`
191
194
  * - `:blockquote`
192
195
  * - `:list`
193
196
  * - `:list_item`
@@ -214,6 +217,10 @@ static VALUE rb_node_new(VALUE self, VALUE type) {
214
217
 
215
218
  if (type == sym_document)
216
219
  node_type = CMARK_NODE_DOCUMENT;
220
+ else if (type == sym_custom_block)
221
+ node_type = CMARK_NODE_CUSTOM_BLOCK;
222
+ else if (type == sym_custom_inline)
223
+ node_type = CMARK_NODE_CUSTOM_INLINE;
217
224
  else if (type == sym_blockquote)
218
225
  node_type = CMARK_NODE_BLOCK_QUOTE;
219
226
  else if (type == sym_list)
@@ -346,6 +353,12 @@ static VALUE rb_node_get_type(VALUE self) {
346
353
  case CMARK_NODE_DOCUMENT:
347
354
  symbol = sym_document;
348
355
  break;
356
+ case CMARK_NODE_CUSTOM_BLOCK:
357
+ symbol = sym_custom_block;
358
+ break;
359
+ case CMARK_NODE_CUSTOM_INLINE:
360
+ symbol = sym_custom_inline;
361
+ break;
349
362
  case CMARK_NODE_BLOCK_QUOTE:
350
363
  symbol = sym_blockquote;
351
364
  break;
@@ -1151,6 +1164,8 @@ VALUE rb_Markly_extensions(VALUE self) {
1151
1164
 
1152
1165
  __attribute__((visibility("default"))) void Init_markly(void) {
1153
1166
  sym_document = ID2SYM(rb_intern("document"));
1167
+ sym_custom_block = ID2SYM(rb_intern("custom_block"));
1168
+ sym_custom_inline = ID2SYM(rb_intern("custom_inline"));
1154
1169
  sym_blockquote = ID2SYM(rb_intern("blockquote"));
1155
1170
  sym_list = ID2SYM(rb_intern("list"));
1156
1171
  sym_list_item = ID2SYM(rb_intern("list_item"));
data/ext/markly/render.c CHANGED
@@ -198,9 +198,11 @@ char *cmark_render(cmark_mem *mem, cmark_node *root, int options, int width,
198
198
  }
199
199
  }
200
200
 
201
- // ensure final newline
202
- if (renderer.buffer->size == 0 || renderer.buffer->ptr[renderer.buffer->size - 1] != '\n') {
203
- cmark_strbuf_putc(renderer.buffer, '\n');
201
+ // If the root node is a block type, ensure there's a final newline:
202
+ if (CMARK_NODE_TYPE_BLOCK_P(root->type)) {
203
+ if (renderer.buffer->size == 0 || renderer.buffer->ptr[renderer.buffer->size - 1] != '\n') {
204
+ cmark_strbuf_putc(renderer.buffer, '\n');
205
+ }
204
206
  }
205
207
 
206
208
  result = (char *)cmark_strbuf_detach(renderer.buffer);
data/lib/markly/node.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Copyright, 2016-2017, by Yuki Izumi.
6
6
  # Copyright, 2017, by Goro Fuji.
7
7
  # Copyright, 2018, by Jerry van Leeuwen.
8
- # Copyright, 2020-2023, by Samuel Williams.
8
+ # Copyright, 2020-2024, by Samuel Williams.
9
9
 
10
10
  require_relative 'node/inspect'
11
11
 
@@ -135,5 +135,19 @@ module Markly
135
135
  node = next_node
136
136
  end
137
137
  end
138
+
139
+ # Extract the children as a fragment.
140
+ #
141
+ # @returns [Markly::Node] the fragment.
142
+ def extract_children
143
+ fragment = Markly::Node.new(:custom_inline)
144
+
145
+ while child = self.first_child
146
+ fragment.append_child(child)
147
+ end
148
+
149
+ fragment
150
+ end
151
+
138
152
  end
139
153
  end
@@ -79,10 +79,10 @@ module Markly
79
79
  end
80
80
  else
81
81
  start = if node.list_start == 1
82
- "<ol#{source_position(node)}>\n"
83
- else
84
- "<ol start=\"#{node.list_start}\"#{source_position(node)}>\n"
85
- end
82
+ "<ol#{source_position(node)}>\n"
83
+ else
84
+ "<ol start=\"#{node.list_start}\"#{source_position(node)}>\n"
85
+ end
86
86
  container(start, '</ol>') do
87
87
  out(:children)
88
88
  end
@@ -105,9 +105,9 @@ module Markly
105
105
  return '' unless tasklist?(node)
106
106
 
107
107
  state = if checked?(node)
108
- 'checked="" disabled=""'
109
- else
110
- 'disabled=""'
108
+ 'checked="" disabled=""'
109
+ else
110
+ 'disabled=""'
111
111
  end
112
112
  "><input type=\"checkbox\" #{state} /"
113
113
  end
@@ -239,13 +239,14 @@ module Markly
239
239
  out("<tr#{source_position(node)}>\n", :children, "</tr>\n")
240
240
  end
241
241
 
242
+ TABLE_CELL_ALIGNMENT = {
243
+ left: ' align="left"',
244
+ right: ' align="right"',
245
+ center: ' align="center"'
246
+ }.freeze
247
+
242
248
  def table_cell(node)
243
- align = case @alignments[@column_index]
244
- when :left then ' align="left"'
245
- when :right then ' align="right"'
246
- when :center then ' align="center"'
247
- else; ''
248
- end
249
+ align = TABLE_CELL_ALIGNMENT.fetch(@alignments[@column_index], '')
249
250
  out(@in_header ? "<th#{align}#{source_position(node)}>" : "<td#{align}#{source_position(node)}>", :children, @in_header ? "</th>\n" : "</td>\n")
250
251
  @column_index += 1
251
252
  end
@@ -7,5 +7,5 @@
7
7
  # Copyright, 2020-2023, by Samuel Williams.
8
8
 
9
9
  module Markly
10
- VERSION = '0.10.0'
10
+ VERSION = '0.11.0'
11
11
  end
data/license.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # MIT License
2
2
 
3
3
  Copyright, 2014, by John MacFarlane.
4
- Copyright, 2015-2020, by Garen Torikian.
4
+ Copyright, 2015-2024, by Garen Torikian.
5
5
  Copyright, 2015, by Nick Wellnhofer.
6
6
  Copyright, 2015-2017, by Andrew Anderson.
7
7
  Copyright, 2016-2017, by Yuki Izumi.
@@ -18,7 +18,8 @@ Copyright, 2018, by Danny Iachini.
18
18
  Copyright, 2019-2020, by Tomoya Chiba.
19
19
  Copyright, 2019, by Brett Walker.
20
20
  Copyright, 2020, by Olle Jonsson.
21
- Copyright, 2020-2023, by Samuel Williams.
21
+ Copyright, 2020-2024, by Samuel Williams.
22
+ Copyright, 2024, by Ross Kaffenberger.
22
23
 
23
24
  Permission is hereby granted, free of charge, to any person obtaining a copy
24
25
  of this software and associated documentation files (the "Software"), to deal
data/readme.md CHANGED
@@ -5,8 +5,7 @@ A parser and abstract syntax tree for Markdown documents (CommonMark compatible)
5
5
  documented in the [GitHub Flavored Markdown spec](http://github.github.com/gfm/), such as support for tables,
6
6
  strikethroughs, and autolinking.
7
7
 
8
- [![Development
9
- Status](https://github.com/ioquatix/markly/workflows/Test/badge.svg)](https://github.com/ioquatix/markly/actions?workflow=Test)
8
+ [![Development Status](https://github.com/ioquatix/markly/workflows/Test/badge.svg)](https://github.com/ioquatix/markly/actions?workflow=Test)
10
9
 
11
10
  ## Motivation
12
11
 
@@ -34,3 +33,11 @@ We welcome contributions to this project.
34
33
  3. Commit your changes (`git commit -am 'Add some feature'`).
35
34
  4. Push to the branch (`git push origin my-new-feature`).
36
35
  5. Create new Pull Request.
36
+
37
+ ### Developer Certificate of Origin
38
+
39
+ In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
40
+
41
+ ### Community Guidelines
42
+
43
+ This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
@@ -22,6 +22,7 @@ authors:
22
22
  - Mu-An Chiou
23
23
  - Olle Jonsson
24
24
  - Roberto Hidalgo
25
+ - Ross Kaffenberger
25
26
  - Vitaliy Klachkov
26
27
  autorequire:
27
28
  bindir: bin
@@ -55,50 +56,8 @@ cert_chain:
55
56
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
56
57
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
57
58
  -----END CERTIFICATE-----
58
- date: 2023-08-16 00:00:00.000000000 Z
59
- dependencies:
60
- - !ruby/object:Gem::Dependency
61
- name: bake
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- type: :development
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
- - !ruby/object:Gem::Dependency
75
- name: covered
76
- requirement: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
- type: :development
82
- prerelease: false
83
- version_requirements: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
- - !ruby/object:Gem::Dependency
89
- name: sus
90
- requirement: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: '0'
95
- type: :development
96
- prerelease: false
97
- version_requirements: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: '0'
59
+ date: 2024-08-19 00:00:00.000000000 Z
60
+ dependencies: []
102
61
  description:
103
62
  email:
104
63
  executables: []
@@ -106,18 +65,12 @@ extensions:
106
65
  - ext/markly/extconf.rb
107
66
  extra_rdoc_files: []
108
67
  files:
109
- - conduct.md
110
- - ext/markly/Makefile
111
68
  - ext/markly/arena.c
112
- - ext/markly/arena.o
113
69
  - ext/markly/autolink.c
114
70
  - ext/markly/autolink.h
115
- - ext/markly/autolink.o
116
71
  - ext/markly/blocks.c
117
- - ext/markly/blocks.o
118
72
  - ext/markly/buffer.c
119
73
  - ext/markly/buffer.h
120
- - ext/markly/buffer.o
121
74
  - ext/markly/case_fold_switch.inc
122
75
  - ext/markly/chunk.h
123
76
  - ext/markly/cmark-gfm-core-extensions.h
@@ -127,97 +80,64 @@ files:
127
80
  - ext/markly/cmark-gfm_export.h
128
81
  - ext/markly/cmark-gfm_version.h
129
82
  - ext/markly/cmark.c
130
- - ext/markly/cmark.o
131
83
  - ext/markly/cmark_ctype.c
132
84
  - ext/markly/cmark_ctype.h
133
- - ext/markly/cmark_ctype.o
134
85
  - ext/markly/commonmark.c
135
- - ext/markly/commonmark.o
136
86
  - ext/markly/config.h
137
87
  - ext/markly/core-extensions.c
138
- - ext/markly/core-extensions.o
139
88
  - ext/markly/entities.inc
140
89
  - ext/markly/ext_scanners.c
141
90
  - ext/markly/ext_scanners.h
142
- - ext/markly/ext_scanners.o
143
91
  - ext/markly/extconf.rb
144
92
  - ext/markly/footnotes.c
145
93
  - ext/markly/footnotes.h
146
- - ext/markly/footnotes.o
147
94
  - ext/markly/houdini.h
148
95
  - ext/markly/houdini_href_e.c
149
- - ext/markly/houdini_href_e.o
150
96
  - ext/markly/houdini_html_e.c
151
- - ext/markly/houdini_html_e.o
152
97
  - ext/markly/houdini_html_u.c
153
- - ext/markly/houdini_html_u.o
154
98
  - ext/markly/html.c
155
99
  - ext/markly/html.h
156
- - ext/markly/html.o
157
100
  - ext/markly/inlines.c
158
101
  - ext/markly/inlines.h
159
- - ext/markly/inlines.o
160
102
  - ext/markly/iterator.c
161
103
  - ext/markly/iterator.h
162
- - ext/markly/iterator.o
163
104
  - ext/markly/latex.c
164
- - ext/markly/latex.o
165
105
  - ext/markly/linked_list.c
166
- - ext/markly/linked_list.o
167
106
  - ext/markly/man.c
168
- - ext/markly/man.o
169
107
  - ext/markly/map.c
170
108
  - ext/markly/map.h
171
- - ext/markly/map.o
172
109
  - ext/markly/markly.c
173
110
  - ext/markly/markly.h
174
- - ext/markly/markly.o
175
- - ext/markly/markly.so
176
111
  - ext/markly/node.c
177
112
  - ext/markly/node.h
178
- - ext/markly/node.o
179
113
  - ext/markly/parser.h
180
114
  - ext/markly/plaintext.c
181
- - ext/markly/plaintext.o
182
115
  - ext/markly/plugin.c
183
116
  - ext/markly/plugin.h
184
- - ext/markly/plugin.o
185
117
  - ext/markly/references.c
186
118
  - ext/markly/references.h
187
- - ext/markly/references.o
188
119
  - ext/markly/registry.c
189
120
  - ext/markly/registry.h
190
- - ext/markly/registry.o
191
121
  - ext/markly/render.c
192
122
  - ext/markly/render.h
193
- - ext/markly/render.o
194
123
  - ext/markly/scanners.c
195
124
  - ext/markly/scanners.h
196
- - ext/markly/scanners.o
197
125
  - ext/markly/scanners.re
198
126
  - ext/markly/strikethrough.c
199
127
  - ext/markly/strikethrough.h
200
- - ext/markly/strikethrough.o
201
128
  - ext/markly/syntax_extension.c
202
129
  - ext/markly/syntax_extension.h
203
- - ext/markly/syntax_extension.o
204
130
  - ext/markly/table.c
205
131
  - ext/markly/table.h
206
- - ext/markly/table.o
207
132
  - ext/markly/tagfilter.c
208
133
  - ext/markly/tagfilter.h
209
- - ext/markly/tagfilter.o
210
134
  - ext/markly/tasklist.c
211
135
  - ext/markly/tasklist.h
212
- - ext/markly/tasklist.o
213
136
  - ext/markly/utf8.c
214
137
  - ext/markly/utf8.h
215
- - ext/markly/utf8.o
216
138
  - ext/markly/xml.c
217
- - ext/markly/xml.o
218
139
  - lib/markly.rb
219
140
  - lib/markly/flags.rb
220
- - lib/markly/markly.so
221
141
  - lib/markly/node.rb
222
142
  - lib/markly/node/inspect.rb
223
143
  - lib/markly/renderer/generic.rb
@@ -229,8 +149,9 @@ homepage: https://github.com/ioquatix/markly
229
149
  licenses:
230
150
  - MIT
231
151
  metadata:
232
- funding_uri: https://github.com/sponsors/ioquatix/
233
152
  documentation_uri: https://ioquatix.github.io/markly/
153
+ funding_uri: https://github.com/sponsors/ioquatix/
154
+ source_code_uri: https://github.com/ioquatix/markly.git
234
155
  post_install_message:
235
156
  rdoc_options: []
236
157
  require_paths:
@@ -239,14 +160,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
160
  requirements:
240
161
  - - ">="
241
162
  - !ruby/object:Gem::Version
242
- version: '2.5'
163
+ version: '3.1'
243
164
  required_rubygems_version: !ruby/object:Gem::Requirement
244
165
  requirements:
245
166
  - - ">="
246
167
  - !ruby/object:Gem::Version
247
168
  version: '0'
248
169
  requirements: []
249
- rubygems_version: 3.4.10
170
+ rubygems_version: 3.5.11
250
171
  signing_key:
251
172
  specification_version: 4
252
173
  summary: CommonMark parser and renderer. Written in C, wrapped in Ruby.
metadata.gz.sig CHANGED
Binary file
data/conduct.md DELETED
@@ -1,133 +0,0 @@
1
-
2
- # Contributor Covenant Code of Conduct
3
-
4
- ## Our Pledge
5
-
6
- We as members, contributors, and leaders pledge to make participation in our
7
- community a harassment-free experience for everyone, regardless of age, body
8
- size, visible or invisible disability, ethnicity, sex characteristics, gender
9
- identity and expression, level of experience, education, socio-economic status,
10
- nationality, personal appearance, race, caste, color, religion, or sexual
11
- identity and orientation.
12
-
13
- We pledge to act and interact in ways that contribute to an open, welcoming,
14
- diverse, inclusive, and healthy community.
15
-
16
- ## Our Standards
17
-
18
- Examples of behavior that contributes to a positive environment for our
19
- community include:
20
-
21
- * Demonstrating empathy and kindness toward other people
22
- * Being respectful of differing opinions, viewpoints, and experiences
23
- * Giving and gracefully accepting constructive feedback
24
- * Accepting responsibility and apologizing to those affected by our mistakes,
25
- and learning from the experience
26
- * Focusing on what is best not just for us as individuals, but for the overall
27
- community
28
-
29
- Examples of unacceptable behavior include:
30
-
31
- * The use of sexualized language or imagery, and sexual attention or advances of
32
- any kind
33
- * Trolling, insulting or derogatory comments, and personal or political attacks
34
- * Public or private harassment
35
- * Publishing others' private information, such as a physical or email address,
36
- without their explicit permission
37
- * Other conduct which could reasonably be considered inappropriate in a
38
- professional setting
39
-
40
- ## Enforcement Responsibilities
41
-
42
- Community leaders are responsible for clarifying and enforcing our standards of
43
- acceptable behavior and will take appropriate and fair corrective action in
44
- response to any behavior that they deem inappropriate, threatening, offensive,
45
- or harmful.
46
-
47
- Community leaders have the right and responsibility to remove, edit, or reject
48
- comments, commits, code, wiki edits, issues, and other contributions that are
49
- not aligned to this Code of Conduct, and will communicate reasons for moderation
50
- decisions when appropriate.
51
-
52
- ## Scope
53
-
54
- This Code of Conduct applies within all community spaces, and also applies when
55
- an individual is officially representing the community in public spaces.
56
- Examples of representing our community include using an official e-mail address,
57
- posting via an official social media account, or acting as an appointed
58
- representative at an online or offline event.
59
-
60
- ## Enforcement
61
-
62
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
- reported to the community leaders responsible for enforcement at
64
- [INSERT CONTACT METHOD].
65
- All complaints will be reviewed and investigated promptly and fairly.
66
-
67
- All community leaders are obligated to respect the privacy and security of the
68
- reporter of any incident.
69
-
70
- ## Enforcement Guidelines
71
-
72
- Community leaders will follow these Community Impact Guidelines in determining
73
- the consequences for any action they deem in violation of this Code of Conduct:
74
-
75
- ### 1. Correction
76
-
77
- **Community Impact**: Use of inappropriate language or other behavior deemed
78
- unprofessional or unwelcome in the community.
79
-
80
- **Consequence**: A private, written warning from community leaders, providing
81
- clarity around the nature of the violation and an explanation of why the
82
- behavior was inappropriate. A public apology may be requested.
83
-
84
- ### 2. Warning
85
-
86
- **Community Impact**: A violation through a single incident or series of
87
- actions.
88
-
89
- **Consequence**: A warning with consequences for continued behavior. No
90
- interaction with the people involved, including unsolicited interaction with
91
- those enforcing the Code of Conduct, for a specified period of time. This
92
- includes avoiding interactions in community spaces as well as external channels
93
- like social media. Violating these terms may lead to a temporary or permanent
94
- ban.
95
-
96
- ### 3. Temporary Ban
97
-
98
- **Community Impact**: A serious violation of community standards, including
99
- sustained inappropriate behavior.
100
-
101
- **Consequence**: A temporary ban from any sort of interaction or public
102
- communication with the community for a specified period of time. No public or
103
- private interaction with the people involved, including unsolicited interaction
104
- with those enforcing the Code of Conduct, is allowed during this period.
105
- Violating these terms may lead to a permanent ban.
106
-
107
- ### 4. Permanent Ban
108
-
109
- **Community Impact**: Demonstrating a pattern of violation of community
110
- standards, including sustained inappropriate behavior, harassment of an
111
- individual, or aggression toward or disparagement of classes of individuals.
112
-
113
- **Consequence**: A permanent ban from any sort of public interaction within the
114
- community.
115
-
116
- ## Attribution
117
-
118
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
- version 2.1, available at
120
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
-
122
- Community Impact Guidelines were inspired by
123
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
-
125
- For answers to common questions about this code of conduct, see the FAQ at
126
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
- [https://www.contributor-covenant.org/translations][translations].
128
-
129
- [homepage]: https://www.contributor-covenant.org
130
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
- [Mozilla CoC]: https://github.com/mozilla/diversity
132
- [FAQ]: https://www.contributor-covenant.org/faq
133
- [translations]: https://www.contributor-covenant.org/translations
data/ext/markly/Makefile DELETED
@@ -1,269 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- # V=0 quiet, V=1 verbose. other values don't work.
5
- V = 0
6
- V0 = $(V:0=)
7
- Q1 = $(V:1=)
8
- Q = $(Q1:0=@)
9
- ECHO1 = $(V:1=@ :)
10
- ECHO = $(ECHO1:0=@ echo)
11
- NULLCMD = :
12
-
13
- #### Start of system configuration section. ####
14
-
15
- srcdir = .
16
- topdir = /home/samuel/.rubies/ruby-3.2.1/include/ruby-3.2.0
17
- hdrdir = $(topdir)
18
- arch_hdrdir = /home/samuel/.rubies/ruby-3.2.1/include/ruby-3.2.0/x86_64-linux
19
- PATH_SEPARATOR = :
20
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
21
- prefix = $(DESTDIR)/home/samuel/.rubies/ruby-3.2.1
22
- rubysitearchprefix = $(rubylibprefix)/$(sitearch)
23
- rubyarchprefix = $(rubylibprefix)/$(arch)
24
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
25
- exec_prefix = $(prefix)
26
- vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
27
- sitearchhdrdir = $(sitehdrdir)/$(sitearch)
28
- rubyarchhdrdir = $(rubyhdrdir)/$(arch)
29
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
30
- sitehdrdir = $(rubyhdrdir)/site_ruby
31
- rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
32
- vendorarchdir = $(vendorlibdir)/$(sitearch)
33
- vendorlibdir = $(vendordir)/$(ruby_version)
34
- vendordir = $(rubylibprefix)/vendor_ruby
35
- sitearchdir = $(sitelibdir)/$(sitearch)
36
- sitelibdir = $(sitedir)/$(ruby_version)
37
- sitedir = $(rubylibprefix)/site_ruby
38
- rubyarchdir = $(rubylibdir)/$(arch)
39
- rubylibdir = $(rubylibprefix)/$(ruby_version)
40
- sitearchincludedir = $(includedir)/$(sitearch)
41
- archincludedir = $(includedir)/$(arch)
42
- sitearchlibdir = $(libdir)/$(sitearch)
43
- archlibdir = $(libdir)/$(arch)
44
- ridir = $(datarootdir)/$(RI_BASE_NAME)
45
- mandir = $(datarootdir)/man
46
- localedir = $(datarootdir)/locale
47
- libdir = $(exec_prefix)/lib
48
- psdir = $(docdir)
49
- pdfdir = $(docdir)
50
- dvidir = $(docdir)
51
- htmldir = $(docdir)
52
- infodir = $(datarootdir)/info
53
- docdir = $(datarootdir)/doc/$(PACKAGE)
54
- oldincludedir = $(DESTDIR)/usr/include
55
- includedir = $(prefix)/include
56
- runstatedir = $(localstatedir)/run
57
- localstatedir = $(prefix)/var
58
- sharedstatedir = $(prefix)/com
59
- sysconfdir = $(prefix)/etc
60
- datadir = $(datarootdir)
61
- datarootdir = $(prefix)/share
62
- libexecdir = $(exec_prefix)/libexec
63
- sbindir = $(exec_prefix)/sbin
64
- bindir = $(exec_prefix)/bin
65
- archdir = $(rubyarchdir)
66
-
67
-
68
- CC_WRAPPER =
69
- CC = gcc
70
- CXX = g++
71
- LIBRUBY = $(LIBRUBY_A)
72
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
73
- LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir)
74
- LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
75
- empty =
76
- OUTFLAG = -o $(empty)
77
- COUTFLAG = -o $(empty)
78
- CSRCFLAG = $(empty)
79
-
80
- RUBY_EXTCONF_H =
81
- cflags = $(optflags) $(debugflags) $(warnflags)
82
- cxxflags =
83
- optflags = -O3 -fno-fast-math
84
- debugflags = -ggdb3
85
- warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef
86
- cppflags =
87
- CCDLFLAGS = -fPIC
88
- CFLAGS = $(CCDLFLAGS) $(cflags) -O3 -std=c99 $(ARCH_FLAG)
89
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
90
- DEFS =
91
- CPPFLAGS = $(DEFS) $(cppflags)
92
- CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
93
- ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
94
- dldflags = -Wl,--compress-debug-sections=zlib
95
- ARCH_FLAG =
96
- DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
97
- LDSHARED = $(CC) -shared
98
- LDSHAREDXX = $(CXX) -shared
99
- AR = gcc-ar
100
- EXEEXT =
101
-
102
- RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
103
- RUBY_SO_NAME = ruby
104
- RUBYW_INSTALL_NAME =
105
- RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
106
- RUBYW_BASE_NAME = rubyw
107
- RUBY_BASE_NAME = ruby
108
-
109
- arch = x86_64-linux
110
- sitearch = $(arch)
111
- ruby_version = 3.2.0
112
- ruby = $(bindir)/$(RUBY_BASE_NAME)
113
- RUBY = $(ruby)
114
- BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME)
115
- ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
116
-
117
- RM = rm -f
118
- RM_RF = rm -fr
119
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
120
- MAKEDIRS = /usr/bin/mkdir -p
121
- INSTALL = /usr/bin/install -c
122
- INSTALL_PROG = $(INSTALL) -m 0755
123
- INSTALL_DATA = $(INSTALL) -m 644
124
- COPY = cp
125
- TOUCH = exit >
126
-
127
- #### End of system configuration section. ####
128
-
129
- preload =
130
- libpath = . $(libdir)
131
- LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir)
132
- DEFFILE =
133
-
134
- CLEANFILES = mkmf.log
135
- DISTCLEANFILES =
136
- DISTCLEANDIRS =
137
-
138
- extout =
139
- extout_prefix =
140
- target_prefix = /markly
141
- LOCAL_LIBS =
142
- LIBS = -lm -lpthread -lc
143
- ORIG_SRCS = arena.c autolink.c blocks.c buffer.c cmark.c cmark_ctype.c commonmark.c core-extensions.c ext_scanners.c footnotes.c houdini_href_e.c houdini_html_e.c houdini_html_u.c html.c inlines.c iterator.c latex.c linked_list.c man.c map.c markly.c node.c plaintext.c plugin.c references.c registry.c render.c scanners.c strikethrough.c syntax_extension.c table.c tagfilter.c tasklist.c utf8.c xml.c
144
- SRCS = $(ORIG_SRCS)
145
- OBJS = arena.o autolink.o blocks.o buffer.o cmark.o cmark_ctype.o commonmark.o core-extensions.o ext_scanners.o footnotes.o houdini_href_e.o houdini_html_e.o houdini_html_u.o html.o inlines.o iterator.o latex.o linked_list.o man.o map.o markly.o node.o plaintext.o plugin.o references.o registry.o render.o scanners.o strikethrough.o syntax_extension.o table.o tagfilter.o tasklist.o utf8.o xml.o
146
- HDRS = $(srcdir)/autolink.h $(srcdir)/buffer.h $(srcdir)/chunk.h $(srcdir)/cmark-gfm-core-extensions.h $(srcdir)/cmark-gfm-extension_api.h $(srcdir)/cmark-gfm-extensions_export.h $(srcdir)/cmark-gfm.h $(srcdir)/cmark-gfm_export.h $(srcdir)/cmark-gfm_version.h $(srcdir)/cmark_ctype.h $(srcdir)/config.h $(srcdir)/ext_scanners.h $(srcdir)/footnotes.h $(srcdir)/houdini.h $(srcdir)/html.h $(srcdir)/inlines.h $(srcdir)/iterator.h $(srcdir)/map.h $(srcdir)/markly.h $(srcdir)/node.h $(srcdir)/parser.h $(srcdir)/plugin.h $(srcdir)/references.h $(srcdir)/registry.h $(srcdir)/render.h $(srcdir)/scanners.h $(srcdir)/strikethrough.h $(srcdir)/syntax_extension.h $(srcdir)/table.h $(srcdir)/tagfilter.h $(srcdir)/tasklist.h $(srcdir)/utf8.h
147
- LOCAL_HDRS =
148
- TARGET = markly
149
- TARGET_NAME = markly
150
- TARGET_ENTRY = Init_$(TARGET_NAME)
151
- DLLIB = $(TARGET).so
152
- EXTSTATIC =
153
- STATIC_LIB =
154
-
155
- TIMESTAMP_DIR = .
156
- BINDIR = $(bindir)
157
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
158
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
159
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
160
- HDRDIR = $(sitehdrdir)$(target_prefix)
161
- ARCHHDRDIR = $(sitearchhdrdir)$(target_prefix)
162
- TARGET_SO_DIR =
163
- TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
164
- CLEANLIBS = $(TARGET_SO) false
165
- CLEANOBJS = $(OBJS) *.bak
166
- TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.-.markly.time
167
-
168
- all: $(DLLIB)
169
- static: $(STATIC_LIB)
170
- .PHONY: all install static install-so install-rb
171
- .PHONY: clean clean-so clean-static clean-rb
172
-
173
- clean-static::
174
- clean-rb-default::
175
- clean-rb::
176
- clean-so::
177
- clean: clean-so clean-static clean-rb-default clean-rb
178
- -$(Q)$(RM_RF) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
179
-
180
- distclean-rb-default::
181
- distclean-rb::
182
- distclean-so::
183
- distclean-static::
184
- distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
185
- -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
186
- -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
187
- -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
188
-
189
- realclean: distclean
190
- install: install-so install-rb
191
-
192
- install-so: $(DLLIB) $(TARGET_SO_DIR_TIMESTAMP)
193
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
194
- clean-static::
195
- -$(Q)$(RM) $(STATIC_LIB)
196
- install-rb: pre-install-rb do-install-rb install-rb-default
197
- install-rb-default: pre-install-rb-default do-install-rb-default
198
- pre-install-rb: Makefile
199
- pre-install-rb-default: Makefile
200
- do-install-rb:
201
- do-install-rb-default:
202
- pre-install-rb-default:
203
- @$(NULLCMD)
204
- $(TARGET_SO_DIR_TIMESTAMP):
205
- $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
206
- $(Q) $(TOUCH) $@
207
-
208
- site-install: site-install-so site-install-rb
209
- site-install-so: install-so
210
- site-install-rb: install-rb
211
-
212
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
213
-
214
- .cc.o:
215
- $(ECHO) compiling $(<)
216
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
217
-
218
- .cc.S:
219
- $(ECHO) translating $(<)
220
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
221
-
222
- .mm.o:
223
- $(ECHO) compiling $(<)
224
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
225
-
226
- .mm.S:
227
- $(ECHO) translating $(<)
228
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
229
-
230
- .cxx.o:
231
- $(ECHO) compiling $(<)
232
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
233
-
234
- .cxx.S:
235
- $(ECHO) translating $(<)
236
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
237
-
238
- .cpp.o:
239
- $(ECHO) compiling $(<)
240
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
241
-
242
- .cpp.S:
243
- $(ECHO) translating $(<)
244
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
245
-
246
- .c.o:
247
- $(ECHO) compiling $(<)
248
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
249
-
250
- .c.S:
251
- $(ECHO) translating $(<)
252
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
253
-
254
- .m.o:
255
- $(ECHO) compiling $(<)
256
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
257
-
258
- .m.S:
259
- $(ECHO) translating $(<)
260
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
261
-
262
- $(TARGET_SO): $(OBJS) Makefile
263
- $(ECHO) linking shared-object markly/$(DLLIB)
264
- -$(Q)$(RM) $(@)
265
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
266
-
267
-
268
-
269
- $(OBJS): $(HDRS) $(ruby_headers)
data/ext/markly/arena.o DELETED
Binary file
Binary file
data/ext/markly/blocks.o DELETED
Binary file
data/ext/markly/buffer.o DELETED
Binary file
data/ext/markly/cmark.o DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/ext/markly/html.o DELETED
Binary file
data/ext/markly/inlines.o DELETED
Binary file
Binary file
data/ext/markly/latex.o DELETED
Binary file
Binary file
data/ext/markly/man.o DELETED
Binary file
data/ext/markly/map.o DELETED
Binary file
data/ext/markly/markly.o DELETED
Binary file
data/ext/markly/markly.so DELETED
Binary file
data/ext/markly/node.o DELETED
Binary file
Binary file
data/ext/markly/plugin.o DELETED
Binary file
Binary file
Binary file
data/ext/markly/render.o DELETED
Binary file
Binary file
Binary file
Binary file
data/ext/markly/table.o DELETED
Binary file
Binary file
Binary file
data/ext/markly/utf8.o DELETED
Binary file
data/ext/markly/xml.o DELETED
Binary file
data/lib/markly/markly.so DELETED
Binary file