@@ -135,20 +135,6 @@ class ElasticCompatPreprocessor < Asciidoctor::Extensions::Preprocessor
135
135
MACROS = "#{ LEGACY } |#{ BETA } |#{ COMING } |#{ DEP } |#{ DEV } |#{ DISC } |#{ GA } |#{ PREV } "
136
136
BLOCK_MACRO_RX = /^\s *(#{ MACROS } )\[ (.*)\] \s *$/
137
137
INLINE_MACRO_RX = /(#{ MACROS } )\[ (.*)\] /
138
- # BETA_BLOCK_MACRO_RX = /^\s*(#{BETA_MACROS})\[(.*)\]\s*$/
139
- # BETA_INLINE_MACRO_RX = /(#{BETA_MACROS})\[(.*)\]/
140
- # COMING_BLOCK_MACRO_RX = /^\s*(#{COMING_MACROS})\[(.*)\]\s*$/
141
- # COMING_INLINE_MACRO_RX = /(#{COMING_MACROS})\[(.*)\]/
142
- # DEP_BLOCK_MACRO_RX = /^\s*(#{DEP_MACROS})\[(.*)\]\s*$/
143
- # DEP_INLINE_MACRO_RX = /(#{DEP_MACROS})\[(.*)\]/
144
- # DEV_BLOCK_MACRO_RX = /^\s*(#{DEV_MACROS})\[(.*)\]\s*$/
145
- # DEV_INLINE_MACRO_RX = /(#{DEV_MACROS})\[(.*)\]/
146
- # DISC_BLOCK_MACRO_RX = /^\s*(#{DISC_MACROS})\[(.*)\]\s*$/
147
- # DISC_INLINE_MACRO_RX = /(#{DISC_MACROS})\[(.*)\]/
148
- # GA_BLOCK_MACRO_RX = /^\s*(#{GA_MACROS})\[(.*)\]\s*$/
149
- # GA_INLINE_MACRO_RX = /(#{GA_MACROS})\[(.*)\]/
150
- # PREV_BLOCK_MACRO_RX = /^\s*(#{PREV_MACROS})\[(.*)\]\s*$/
151
- # PREV_INLINE_MACRO_RX = /(#{PREV_MACROS})\[(.*)\]/
152
138
153
139
def process ( _document , reader )
154
140
reader . extend ReaderExtension
@@ -236,23 +222,9 @@ def postprocess(line)
236
222
# First convert the "block" version of these macros. We convert them
237
223
# to block macros because they are alone on a line
238
224
line . gsub! ( BLOCK_MACRO_RX , '\1::[\2]' )
239
- # line.gsub!(BETA_BLOCK_MACRO_RX, '\1::[\2]')
240
- # line.gsub!(COMING_BLOCK_MACRO_RX, '\1::[\2]')
241
- # line.gsub!(DEP_BLOCK_MACRO_RX, '\1::[\2]')
242
- # line.gsub!(DEV_BLOCK_MACRO_RX, '\1::[\2]')
243
- # line.gsub!(DISC_BLOCK_MACRO_RX, '\1::[\2]')
244
- # line.gsub!(GA_BLOCK_MACRO_RX, '\1::[\2]')
245
- # line.gsub!(PREV_BLOCK_MACRO_RX, '\1::[\2]')
246
225
# Then convert the "inline" version of these macros. We convert them
247
226
# to inline macros because they are *not* at the start of the line....
248
227
line . gsub! ( INLINE_MACRO_RX , '\1:[\2]' )
249
- # line.gsub!(BETA_INLINE_MACRO_RX, '\1:[\2]')
250
- # line.gsub!(COMING_INLINE_MACRO_RX, '\1:[\2]')
251
- # line.gsub!(DEP_INLINE_MACRO_RX, '\1:[\2]')
252
- # line.gsub!(DEV_INLINE_MACRO_RX, '\1:[\2]')
253
- # line.gsub!(DISC_INLINE_MACRO_RX, '\1:[\2]')
254
- # line.gsub!(GA_INLINE_MACRO_RX, '\1:[\2]')
255
- # line.gsub!(PREV_INLINE_MACRO_RX, '\1:[\2]')
256
228
# Transform Elastic's traditional comment based marking for
257
229
# AUTOSENSE/KIBANA/CONSOLE snippets into a marker that we can pick
258
230
# up during tree processing to turn the snippet into a marked up
0 commit comments