giterlizzi / dokuwiki-plugin-semantic

Dokuwiki Semantic Plugin
http://dokuwiki.org/plugin:semantic
GNU General Public License v2.0
9 stars 5 forks source link

please add a Macro Recipe #1

Closed coastgnu closed 8 years ago

coastgnu commented 8 years ago

schema.org/Recipe

syntax.php:

        $this->Lexer->addSpecialPattern('~~Recipe~~', $mode, 'plugin_semantic');

diff -d syntax.php.new syntax.php

     22a23
     >         $this->Lexer->addSpecialPattern('~~Recipe~~', $mode, 'plugin_semantic');

conf/metadata.org:

      $meta['defaultSchemaOrgType'] = array('multichoice','_choices' => array('Article', 'NewsArticle', 'TechArticle', 'BlogPosting', 'Recipe'));

diff -d ./conf/metadata.php.orig ./conf/metadata.php

     11c11
      < $meta['defaultSchemaOrgType'] = array('multichoice','_choices' => array('Article', 'NewsArticle', 'TechArticle', 'BlogPosting'));
     ---
      > $meta['defaultSchemaOrgType'] = array('multichoice','_choices' => array('Article', 'NewsArticle', 'TechArticle', 'BlogPosting', 'Recipe'));

Thank you very much, Thomas