Ejemplo n.º 1
0
 protected function transformHtml($str, $config)
 {
     $trsf = new PressHTMLTransformer($this);
     $trsf->load($str);
     $trsf->applyTransforms();
     return ['html' => $trsf->toHTML(), 'footnotes_html' => ''];
 }
Ejemplo n.º 2
0
Archivo: config.php Proyecto: lud/press
<?php

return ['base_dir' => env('PRESS_STORAGE_PATH', '/tmp'), 'meta_sep' => '****', 'brand' => '(conf :: press.brand)', 'url_map' => ['classic' => "article/:year/:month/:day/:slug", 'simple' => "page/:slug"], 'seo_generator' => 'Lud\\Press\\SeoGenerator', 'storage_path' => base_path('public/.press-cache'), 'filename_schemas' => ['classic', 'simple'], 'extensions' => ['.sk', 'md', 'htm', '.html'], 'default_page_size' => 10, 'theme' => env('PRESS_THEME', 'press'), 'load_themes' => [], 'skriv' => ['urlProcessFunction' => function ($url, $label, $targetBlank, $nofollow) {
    $url = \Lud\Press\PressHTMLTransformer::maybeTransformHref($url);
    return [$url, $label, $targetBlank, $nofollow];
}, 'softLinebreaks' => true]];