def run(self):
self.options['video_id'] = directives.uri(self.arguments[0])
if not self.options.get('width'):
self.options['width'] = self.default_width
if not self.options.get('height'):
self.options['height'] = self.default_height
if not self.options.get('align'):
self.options['align'] = 'left'
node = nodes.raw('', self.html % self.options, format='html')
node.rawsource = self._get_raw_source()
return [node]
评论列表
文章目录