def pelican_init(pelicanobj):
 try:
  import markdown
  from plantuml_md import PlantUMLMarkdownExtension
 except:
  logger.debug('[plantuml] Markdown support not available')
  return
 config = {'siteurl': pelicanobj.settings['SITEURL']}
 try:
  pelicanobj.settings['MD_EXTENSIONS'].append(PlantUMLMarkdownExtension(config))
 except:
  logger.error('[plantuml] Unable to configure plantuml markdown extension')

def pelican_init ( pelicanobj ) : try : import markdown from plantuml_md import PlantUMLMarkdownExtension except : logger . debug ( '[plantuml] Markdown support not available' ) return config = { 'siteurl' : pelicanobj . settings [ 'SITEURL' ] } try : pelicanobj . settings [ 'MD_EXTENSIONS' ] . append ( PlantUMLMarkdownExtension ( config ) ) except : logger . error ( '[plantuml] Unable to configure plantuml markdown extension' )
prepare configurations for the md plugin .