Skip to content

Commit 196cdde

Browse files
jvalkealrwinch
authored andcommitted
Change asciinema container style
From videoblock to asciinemablock to have different styling config apart from other video players. Fixes #38
1 parent f531822 commit 196cdde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/asciinema-extension.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const toBlock = (attrs, parent, source, context, uiCatalog, defaultOptions, file
136136
source = doc.$apply_subs(attrs.subs, doc.$resolve_subs(subs))
137137
}
138138
const idAttr = attrs.id ? ` id="${attrs.id}"` : ''
139-
const classAttr = attrs.role ? `${attrs.role} videoblock` : 'videoblock'
139+
const classAttr = attrs.role ? `${attrs.role} asciinemablock` : 'asciinemablock'
140140

141141
const block = context.$create_pass_block(parent, '', Opal.hash(attrs))
142142

test/asciinema-extension-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe('asciinema-extension', () => {
138138

139139
expect(siteAsciiDocConfig.extensions.length).to.equal(1)
140140
expect(uiCatalog.files.length).to.equal(1)
141-
expect(out).to.contains('video')
141+
expect(out).to.contains('asciinema')
142142
})
143143

144144
it('should work with duplicate blocks', async () => {
@@ -165,7 +165,7 @@ describe('asciinema-extension', () => {
165165

166166
expect(siteAsciiDocConfig.extensions.length).to.equal(1)
167167
expect(uiCatalog.files.length).to.equal(1)
168-
expect(out).to.contains('video')
168+
expect(out).to.contains('asciinema')
169169
})
170170
})
171171
})

0 commit comments

Comments
 (0)