Skip to content

How To Style The Post With PHP Markdown

styling post php markdown

ATX Heading

To add a heading, you just need to open with #. Get your heading text followed with “hash”. As we know there are 1-6 heading HTML tags, So adding the number of “hashes” will do all.

# This is heading 1 H1
## This is heading 2 H2
### This is heading 3 H3
#### This is heading 4 H4
##### This is heading 5 H5
###### This is heading 6 H6

You can close the atx-style header, if you think it looks better.

If you would like to add a line just below of the heading or just to separate the texts, use a horizontal line. Horizontal lines can be entered by using three hyphens or three asterisks.

---
***
- - -
* * *

Blockquotes

Markdown uses email-style > character for blockquote. Add the open angular bracket (greater than sign) on each line.

> This is the first line of the blockquote.
> Another line if you want it to display.
>
> More will goes here.

Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by adding additional levels of >:

> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.

Blockquotes can contain other elements including header, lists and code block. Normally any decent text editor should make an email-style quote easy.

> ## This is header
>
> 1. This is the first list item.
> 2. This is the second list item.
>
>Example code:
>
>    return shell("echo input");

Lists

Markdown supports ordered (numbered) and unordered (bulleted) lists. For unordered lists use hyphens, asterisks and pluses.

- List 1
- List 2
- List 3

+ List 1
+ List 2
+ List 3

* List 1
* List 2
* List 3

Ordered lists use numbers followed by periods.

1. List 1
2. List 2
3. List 3

You will get the same result if you use the list like this:

1. List 1
1. List 2
1. List 3

or

3. List 1
5. List 2
11. List 3

Links

Markdown supports two style of links: inline and reference.

To create an inline link: use a set of regular parenthesis immediately after the line text’s closing square bracket. Inside the parenthesis, put the URL where you want to link to point, along with an optional title for the link, inside the double quotes.

This is [an example](http://example.com/ "Title") inline link.
[This link](http://example.net/) has no title attribute.

Emphasis

Markdown treats asterisks and underscores as indicators of emphasis. Wrapped the text to style it.

Single will give you italic and double give you bold style.

*italic text*
_italic text_
**strong text**
__strong text__

If you use the spaces before and after * and _ it will be treated as literal * asterisks and _ underscore.

Code

To indicate span or code, wrap it with a pair of backtick. Single and double do the same job. It is very helpful when you need to indicate a single backtick within a code span.

Please do not use `<a>` tag.

or

``echo $input;``

``Single backtick (`) inside a code span``

Image

Markdown uses the image syntax that is intended to resemble the syntax for links, allowing for two styles: inline and reference.

![Alt text](/path/to/img.jpg)
![Alt text](/path/to/img.jpg "Optional title")
Tags:

0 thoughts on “How To Style The Post With PHP Markdown”

  1. Pingback: allgame

  2. Pingback: หวย24

  3. Pingback: artificial intelligence attorney

  4. Pingback: cybersécurité

  5. Pingback: apply evisa online

  6. Pingback: 17 wsm

  7. Pingback: 38/40 ammo

  8. Pingback: 6.5 grendel ammo

  9. Pingback: 300 win mag ammo

  10. Pingback: sicarios baratos precio

  11. Pingback: SaaS Agreement Lawyer

  12. Pingback: itsMasum.Com

  13. Pingback: itsMasum.Com

  14. Pingback: itsMasum.Com

  15. Pingback: itsMasum.Com

  16. Pingback: itsMasum.Com

  17. Pingback: o/s informatique

  18. Pingback: programmation informatique

  19. Pingback: sfr cybersecurite

  20. Pingback: ecole d'ingenieur informatique

  21. Pingback: FÜHRERSCHEIN KAUFEN

  22. Pingback: nangs Sydney

  23. Pingback: Nangs delivery 24/7

  24. Pingback: nangs delivery in Sydney

  25. Pingback: Plombier Tours

  26. Pingback: more

  27. Pingback: itsmasum.com

  28. Pingback: itsmasum.com

  29. Pingback: itsmasum.com

  30. Pingback: itsmasum.com

  31. Pingback: itsmasum.com

  32. Pingback: travesti.site

  33. Pingback: chatavenue

  34. Pingback: random text chat

  35. Pingback: random stranger chat

  36. Pingback: chatrandom

  37. Pingback: chat with females

  38. Pingback: online chat rooms

  39. Pingback: garap

  40. Pingback: itsmasum.com

  41. Pingback: itsmasum.com

  42. Pingback: yasam ayavefe

  43. Pingback: list

  44. Pingback: french bulldog puppies for sale in texas

  45. Pingback: ricnirplieat

  46. Pingback: joker gaming

  47. Pingback: Film institutionnel Nantes

  48. Pingback: nz jobs

  49. Pingback: uk jobs

  50. Pingback: karachi jobs

  51. Pingback: Kod Bulutu

  52. Pingback: lugabet giriş

  53. Pingback: betgross giriş

Leave a Reply