def render_canonical_link(self, scheme=None):
    'Render the rel=canonical link to a Markup object for injection into a template'
    return Markup('<link rel="canonical" href="{}" />'.format(self.get_canonical_url(scheme=scheme)))
Render the rel=canonical link to a Markup object for injection into a template
def render_canonical_link(self, scheme=None):
    
    return Markup('<link rel="canonical" href="{}" />'.format(self.get_canonical_url(scheme=scheme)))