Skip to content

miniMakdown is a library written in PHP. It's simple markup that makes it easy to add formatting, links, and images to plain text.

License

Notifications You must be signed in to change notification settings

stndc/miniMarkdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniMarkdown

miniMakdown is a library written in PHP. It's simple markup that makes it easy to add formatting, links, and images to plain text. You can see that the documentation is Spanish.

Use function minimarkdown()

<?php

include 'miniMarkdown.php';

$h1 = '# h1 Text';
echo minimarkdown($h1);

?>

Headings

To create a heading, add # symbols before your heading text. The number of # you use will determine the hierarchy level and typeface size of the heading.

# H1
## H2
### H3

Styling text

Style Sintaxis Example
bold ** ** **This is bold text**
italic _ _ _This is italic text_
positive ++ ++ ++This is positive text++
negative -- -- --This is negative text--

Code fromat

To format code or text into its own distinct block, use backticks.

`Code format`

Link

You can create an inline link by wrapping link text in brackets [ ], and then wrapping the URL in parentheses ( ).

[Google](https://www.google.com)

Image

You can display an image by adding ! and wrapping the alt text in [ ]. Alt text is a short text equivalent of the information in the image. Then, wrap the link for the image in parentheses ().

![Alt](https://www.google.com/intl/en_ALL/images/logo.gif)

License

MIT

About

miniMakdown is a library written in PHP. It's simple markup that makes it easy to add formatting, links, and images to plain text.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages