# -*- coding: utf-8 -*-

# Description: Html macro
# Detail: Copies the input to output and treats it as html.

# Remark 1.7.6
# Copyright (c) 2009 - 2019
# Kalle Rutanen
# Distributed under the MIT license (see license.txt).

from Remark.Macro_Registry import registerMacro
from Remark.FileSystem import htmlRegion

class Html_Macro(object):
    def name(self):
        return 'Html'

    def expand(self, parameter, remark):
        return htmlRegion(parameter)

    def expandOutput(self):
        return False

    def htmlHead(self, remark):
        return []                

    def postConversion(self, remark):
        None

registerMacro('Html', Html_Macro())
