This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'asciidoctor/extensions' | |
class AngularLocalizerTreeprocessor < Asciidoctor::Extensions::Treeprocessor | |
def process document | |
document.blocks? ? (localize_blocks document) : nil | |
end | |
def localize_blocks node |