Skip to content

Commit e8eae5a

Browse files
committed
Added big/underline support
1 parent 52cf9a9 commit e8eae5a

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

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

Lines changed: 10 additions & 5 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"
@@ -581,9 +584,11 @@ 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 !!(@snr =~ / in_cell_[0-9] /)
591+
end
587592
end
588593
end
589594
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: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)