Skip to content

Commit 9f30dbd

Browse files
authored
Merge pull request #46 from CourseOrchestra/underline_big
Underline big
2 parents 52cf9a9 + d0ea80b commit 9f30dbd

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

lib/a-od-producer/asciidoctor-od.rb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@
3232
$aodp_sn_span_superscript = "Superscript"
3333
$aodp_sn_span_mark = "Mark"
3434
$aodp_sn_span_monospaced = "Source_20_Text"
35-
$aodp_sn_span_unquted_small = "Small"
36-
$aodp_sn_span_unquted_table_small = "Table_20_Small"
35+
$aodp_sn_span_unquoted_small = "Small"
36+
$aodp_sn_span_unquoted_table_small = "Table_20_Small"
37+
$aodp_sn_span_unquoted_big = "Big"
38+
$aodp_sn_span_unquoted_table_big = "Table_20_Big"
39+
$aodp_sn_span_unquoted_underline = "Underline"
3740
$aodp_sn_list_arabic = "Numbering_20_123"
3841
$aodp_sn_list_decimal = "Numbering_20_dec"
3942
$aodp_sn_list_loweralpha = "Numbering_20_abc"
@@ -399,7 +402,7 @@ def h_basic_table_caption; BasicTableCaption.new(@sn, @sd) if
399402
!!(@sn =~ /^adoc_tca[ ]/) end
400403
def h_basic_header; BasicSectionHeader.new(@sn, @sd) if
401404
!!(@sn =~ /^adoc_s[ ]/) end
402-
def h_basic_inline_quoted; BasicInlineQuoted.new(@sn, @sd) if
405+
def h_basic_inline_quoted; BasicInlineQuoted.new(@sn, @sd) if
403406
!!(@sn =~ /^adoc_iq[ ]/) end
404407
def h_basic_list_caption; BasicListCaption.new(@sn, @sd) if
405408
!!(@sn =~ /^adoc_lca[ ]/) end
@@ -581,9 +584,12 @@ def h_parent_style_name
581584
if type != "unquoted"
582585
@sd[:parent_style_name] = eval("$aodp_sn_span_#{type}")
583586
else
584-
if !!(@snr =~ / small /)
585-
@sd[:parent_style_name] = $aodp_sn_span_unquted_small
586-
@sd[:parent_style_name] = $aodp_sn_span_unquted_table_small if !!(@snr =~ / in_cell_[0-9] /)
587+
['small', 'big', 'underline'].each do |unquoted_type|
588+
if !!(@snr =~ / #{unquoted_type} /)
589+
@sd[:parent_style_name] = eval("$aodp_sn_span_unquoted_#{unquoted_type}")
590+
@sd[:parent_style_name] = eval("$aodp_sn_span_unquoted_table_#{unquoted_type}") if
591+
!!(@snr =~ / in_cell_[0-9] /) and ['small', 'big'].include? unquoted_type
592+
end
587593
end
588594
end
589595
end
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:56bd512b7cf58f5108ce32f019b4baf83d7035271c5ed6c4fd75663c328c9b1f
3-
size 342439
2+
oid sha256:536a38b93fedfab5fda10feffcdb635368f2eda9b328c59b942ff42f1afd877b
3+
size 342750

test/test_cases/stew/test.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Third point (not sub) continuation. For example some large paragraph, that descr
276276
[.landscape]
277277
== A Test Section 1 (landscape)
278278

279-
Example of _italic_, *bold*, ~subscript~, ^superscript^, #simply marked#, [small]#small text# and `monospaced`.
279+
Example of _italic_, *bold*, ~subscript~, ^superscript^, #simply marked#, [small]#small text#, [big]#big text#, [underline]#underlined text#, and `monospaced`.
280280

281281
Example of inline break +
282282
next string
@@ -285,7 +285,7 @@ Example of informal table with no vertical lines.
285285

286286
[frame=topbot, grid=rows]
287287
|===
288-
|a1 a|b1 [small]#small in table#
288+
|a1 a|b1 [small]#small in table# [underline]#underlined in table#
289289
|a2 |b2
290290
|a3 |b3
291291
|a4 |b4

0 commit comments

Comments
 (0)