UPDATE July 2019 Facebook now lets you add limited formatting to 'Group' posts. If you click the back to front P type character in the update box, as shown in the screenshot, a few formatting options are displayed, 'H1', 'H2', Unordered List, Numbered List, Quotation. See more of Flagship Store Markdown on Facebook. Create New Account. See more of Flagship Store Markdown on Facebook. Create New Account. Flagship Store Markdown. Community See All. 38 people like this. 38 people follow this. Markdown makes formatting text for web pages super easy and intuitive. There's just a few things you need to know. Use this page as a reference until you get the hang of it. Take a look at the examples below. You type a few text characters for Markdown syntax that will create the HTML code displayed underneath each example.
PHP Markdown is a port to PHP of the Markdown program written by John Gruber.
“Markdown” is two things: a plain text markup syntax, and a software tool that converts the plain text markup to HTML for publishing on the web.
The Markdown syntax allows you to write text naturally and format it without using HTML tags. More importantly: in Markdown format, your text stays enjoyable to read for a human being, and this is true enough that it makes a Markdown document publishable as-is, as plain text. If you are using text-formatted email, you already know some part of the syntax.
Visit the Concepts page for a short introduction full of examples where you will learn to write with Markdown. If you have some understanding of HTML, you can also read the full documentation of Markdown’s syntax, available on John’s web site.
PHP Markdown can work as a plug-in for WordPress and bBlog, as a modifier for the Smarty templating engine, or as a remplacement for textile formatting in any software that support textile.
- PHP Markdown 1.0.1o(25 Kb)
- Latest version of PHP Markdown, released on January 8, 2012.
- PHP Markdown Extra 1.2.5(34 Kb)
- A special version of PHP Markdown with extra features. See the PHP Markdown Extra description. Released on January 8, 2012.
Participate to the development of this project on Github. PHP Markdown and PHP Markdown Extra are also available as PEAR packages.
Installation and Requirement
PHP Markdown requires PHP version 4.0.5 or later.
PHP Markdown works with WordPress, version 1.2 or later.
To use PHP Markdown with WordPress, place the “markdown.php” file in the “plugins” folder. This folder is located inside “wp-content” at the root of your site:
Activate the plugin with the administrative interface of WordPress. In the “Plugins” section you will now find Markdown. To activate the plugin, click on the “Activate” button on the same line than Markdown. Your entries will now be formatted by PHP Markdown.
To post Markdown content, you’ll first have to disable the “visual” editor in the User section of WordPress.
You can configure PHP Markdown to not apply to the comments on your WordPress weblog. See the “Configuration” section below.
PHP Markdown also works with bBlog.
To use PHP Markdown with bBlog, rename “markdown.php” to “modifier.markdown.php” and place the file in the “bBlog_plugins” folder. This folder is located inside the “bblog” directory of your site, like this:
Select “Markdown” as the “Entry Modifier” when you post a new entry. This setting will only apply to the entry you are editing.
REPLACING TEXTILE IN TEXTPATTERN
TextPattern use Textile to format your text. You can replace Textile by Markdown in TextPattern without having to change any code by using the Texitle Compatibility Mode. This may work with other software that expect Textile too.
Rename the “markdown.php” file to “classTextile.php”. This will make PHP Markdown behave as if it was the actual Textile parser.
Replace the “classTextile.php” file TextPattern installed in your web directory. It can be found in the “lib” directory:
Contrary to Textile, Markdown does not convert quotes to curly ones and does not convert multiple hyphens (
---) into en- and em-dashes. If you use PHP Markdown in Textile Compatibility Mode, you can solve this problem by installing the “smartypants.php” file from PHP SmartyPantsbeside the “classTextile.php” file. The Textile Compatibility Mode function will use SmartyPants automatically without further modification.
IN YOUR OWN PROGRAMS
You can use PHP Markdown easily in your current PHP program. Simply include the file and then call the Markdown function on the text you want to convert:
If you wish to use PHP Markdown with another text filter function built to parse HTML, you should filter the text after the Markdown function call. This is an example with PHP SmartyPants:
If your program use the Smarty template engine, PHP Markdown can now be used as a modifier for your templates. Rename “markdown.php” to “modifier.markdown.php” and put it in your smarty plugins folder.
If you are using MovableType 3.1 or later, the Smarty plugin folder is located at
(MT CGI root)/php/extlib/smarty/plugins. This will allow Markdown to work on dynamic pages.
By default, PHP Markdown produces XHTML output for tags with empty elements. E.g.:
Markdown can be configured to produce HTML-style tags; e.g.:
To do this, you must edit the “MARKDOWN_EMPTY_ELEMENT_SUFFIX” definition below the “Global default settings” header at the start of the “markdown.php” file.
By default, the Markdown plugin applies to both posts and comments on your WordPress weblog. To deactivate one or the other, edit the
MARKDOWN_WP_COMMENTS definitions under the “WordPress settings” header at the start of the “markdown.php” file.
UPDATING MARKDOWN IN OTHER PROGRAMS
Many web applications now ship with PHP Markdown, or have plugins to perform the conversion to HTML. You can update PHP Markdown — or replace it with PHP Markdown Extra — in many of these programs by swapping the old “markdown.php” file for the new one.
Here is a short non-exhaustive list of some programs and where they hide the “markdown.php” file.
|PROGRAM||PATH TO MARKDOWN|
If you’re unsure if you can do this with your application, ask the developer, or wait for the developer to update his application or plugin with the new version of PHP Markdown.
To file bug reports please send email to: [email protected]
Please include with your report: (1) the example input; (2) the output you expected; (3) the output PHP Markdown actually produced.
Markdown is a text formatting syntax which makes it easier to add HTML elements to text while drafting posts. It uses an easy to learn syntax to translate common markup elements to make formatting a lot easier. WP-Markdown adds this to WordPress.
What’s it Do?
WP-Markdown works by converting your WordPress post editor to a pure text editor that accepts the Markdown format. That way, you can draft your posts in Markdown, and they will be published with proper formatting in HTML. The plugin also allows you to add Markdown to comments and features a help bar which you can add to either the post editor or comments. The help bar will give you a few tools that allow you to add Markdown elements and will show you a preview of what your post will look like when it’s output. WP-Markdown supports all post types, and it can be switched on or off for each individual post type.
Facebook Post Markdown Page
How’s it Work?
After you install and activate the plugin, you can set it up by going to Settings -> Writing and scroll down to the Markdown section. Here you will see an option labeled “Enable MarkDown for:” with a list of post types on your site. Simply check the box next to the post types you want to add Markdown too to enable the functionality. Below this is another option titled “Enable MarkDown help bar for:”, with the option for the post editor, comments, and bbPress forums. The help bar adds a few buttons to the post editor which helps you add Markdown syntax to your posts. It will also enable a preview box right underneath the post editor, which will show you how your post will look when it is output and formatted.
The last option is “Enable Prettify syntax highlighter:”. If you are not already using a syntax highlighter, and have a lot of code samples in your posts, then you can turn this on. Whenever you add a code block in Markdown to your posts, the Prettify highlighter will automatically detect what language the code is written in, and highlight it appropriately.
With the plugin functionality switched on, you can go to the post editor to start drafting your posts. You will see that the Visual editor has been removed, so you have to use either HTML or Markdown in your posts. You can start drafting up your posts in Markdown right away. If you’ve enabled the help bar, you will see a few tools at the top that let you do things like add links, bold text, italics, and a couple of other things. This is similar to the TinyMCE toolbar. You will also see a preview box at the bottom of the post which will show you what your text will look like when it is formatted. This is a good quick reference guide if you want to make sure you are using the Markdown syntax correctly, especially at the beginning.
The help bar in action
If you’ve enabled WP-Markdown on comments, you will see the same functionality in the comments editor.
WP-Markdown is great for those that are looking to streamline their process and start using Markdown in WordPress. If you are looking for a plugin that allows you to mix and match the visual editor and Markdown posts, then Jetpack may be a better option.
Costs, Caveats, Etc.
Facebook Messenger Markdown
WP-Markdown has been around for a little while now, and it has seen a few iterations since it’s beginning. It has seen quite a few updates and has become more reliable over time. If you’re looking for help with the plugin, you can visit the support forums.