Commit 40d3d439 authored by Dan Untenzu's avatar Dan Untenzu 馃樂
Browse files

[FEATURE] 馃摑 Rewrite Readme

parent 1b8af1be
# Contributing
馃敯 Thank you for your proposed contribution! This guide will help you along.
## Code of Conduct
This project has adopted the [TYPO3 Code of Conduct](
By participating in this project you agree to abide by its terms.
## Vision
The general idea of this project is described in the [README](./
## How to contribute
There are many ways to [contribute to Open Source projects](
beyond coding. Draft a new design, test features and give feedback, report bugs,
improve the documentation, review the issue tracker and suggest closing
duplicates or outdated tickets. Spread the word and write a tweet or blog post.
You like to code? Find an open issue and fix a bug. Add tests or improve the
project setup. Or build a new feature.
## Workspace
馃毀 This project is maintained on GitLab.
It is mirrored to GitHub though. If you feel more comfortable with GitHub,
then you are able to work with this mirror just fine.
All issues and pull requests are mirrored to GitLab.
## Opening a ticket
Please always open a ticket or comment on existing issues before you start
working on something.
- [Guide to open a ticket](
## Opening a pull request
- [Guide to open a pull request](
- [Guide to update a pull request](
Keep your pull requests limited to a single issue. One feature branch per issue.
Please explain your changes in a short,
[readable commit message](
## Coding Guidelines
This project has adopted the
[PSR-2 Coding Style Guide]( for PHP Code.
General file formats are defined in the [EditorConfig](
The project follows the naming scheme of the
[Flow Framework](
for classes, methods, variables and filenames.
鉁 Don't worry. The guidlines are checked automatically in every pull request.
## Release cycle
This project has adopted [SemVer 2 Versioning](
New commits are composed in branch `development` until a new version is
All notable changes made between each release are documented in the
## Feedback
[Everything in open source should be a series of kindnesses](
Please send some [feedback]( and share how this
package has proven useful to you and how you may help to improve it.
# Markdown Mini Page
[![Build Status](](
[![Made With](](
Quickly convert Markdown into a valid HTML5 page with minimal styles.
_猸 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.
- Minimal implementation - Three lines of code are enough
鈫 馃 thanks to [pixelbrackets/html5-mini-template](
- GitHub Flavored Markdown conversion
鈫 馃 thanks to [erusev/parsedown](
- GitHub Markdown stylesheet include
鈫 馃 thanks to [pixelbrackets/gfm-stylesheet](
See [禄Usage芦](#usage) for some examples.
The package follows the KISS principle.
## Requirements
## Installation
Packagist Entry
## Source
Mirror (Issues & Pull
Requests mirrored to GitLab)
## Demo
鈱笍 [`php tests/demo.php`](./tests/demo.php).
## Usage
This package supports all options of the
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!')
echo $markup;
1. Convert & wrap a message, set your own stylesheet URL and title
$template = (new \Pixelbrackets\MarkdownMiniPage\MarkdownMiniPage())
->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
## Author
Dan Untenzu (<> / [@pixelbrackets](
## Changelog
See [](./
## 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.
$markup = (new \Pixelbrackets\MarkdownMiniPage\MarkdownMiniPage())
->setContent('# Status' . PHP_EOL . 'All Systems Operational')
return $markup;
// Returns minimal HTML5 document markup with a stylesheet CDN
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Status">
<link rel="stylesheet" href="">
<p>All Systems Operational</p>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment