承接 pixelbrackets/markdown-mini-page 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pixelbrackets/markdown-mini-page

最新稳定版本:1.0.0

Composer 安装命令:

composer require pixelbrackets/markdown-mini-page

包简介

Quickly convert Markdown into a valid HTML5 page with minimal styles

README 文档

README

Version Build Status Made With License Contribution

Quickly convert Markdown into a valid HTML5 page with minimal styles.

Screenshot

⭐ You like this package? Please star it or send a tweet. ⭐

Vision

This package converts Markdown content into HTML, wraps a HTML5 document header and links a minimal stylesheet. This allows to quickly convert Markdown text into a webpage view.

See »Usage« for some examples.

The package follows the KISS principle.

Requirements

  • PHP

Installation

Packagist Entry https://packagist.org/packages/pixelbrackets/markdown-mini-page/

Source

https://gitlab.com/pixelbrackets/markdown-mini-page/

Mirror https://github.com/pixelbrackets/markdown-mini-page/ (Issues & Pull Requests mirrored to GitLab)

Demo

🚀 https://markdown-mini-page.app.pixelbrackets.de/

⌨️ php tests/demo.php.

Usage

This package supports all options of the pixelbrackets/html5-mini-template package. For example setStylesheet() to overwrite the default stylesheet.

  1. Convert a message written in Markdown style into a HTML, wrap into a HTML5 document and link a minimal stylesheet

    $markup = (new \Pixelbrackets\MarkdownMiniPage\MarkdownMiniPage())
        ->setContent('Hello _Markdown_ World!')
        ->getMarkup();
    echo $markup;
    
  2. Convert & wrap a message, set your own stylesheet URL and title

    $template = (new \Pixelbrackets\MarkdownMiniPage\MarkdownMiniPage())
        ->setStylesheet('/assets/styles.css')
        ->setTitle('Index')
        ->setContent('# Status' . PHP_EOL . 'All Systems Operational');
    echo $template->getMarkup();
    

License

GNU General Public License version 2 or later

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.

Author

Dan Untenzu (mail@pixelbrackets.de / @pixelbrackets)

Changelog

See CHANGELOG.md

Contribution

This script is Open Source, so please use, share, patch, extend or fork it.

Contributions are welcome!

Feedback

Please send some feedback and share how this package has proven useful to you or how you may help to improve it.

统计信息

  • 总下载量: 9.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2020-11-15