Giter Site home page Giter Site logo

crowdfavorite-mirrors / markdown-on-save Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markjaquith/markdown-on-save

0.0 17.0 0.0 131 KB

Unofficial mirror repository; no pull requests, please. #WordPressPlugin: allows you to author posts in Markdown, but stores rendered HTML in post_content so you can deactivate with impunity.

markdown-on-save's Introduction

Markdown on Save

Contributors: markjaquith
Donate link: http://txfx.net/wordpress-plugins/donate
Tags: markdown, formatting
Requires at least: 3.3
Tested up to: 3.5
Stable tag: 1.2.1

Allows you to compose content in Markdown on a per-item basis. The markdown version is stored separately, so you can deactivate this plugin any time.

Description

This plugin allows you to compose content in Markdown on a per-item basis. The markdown version is stored separately (in the post_content_filtered column), so you can deactivate this plugin and your posts won't spew out Markdown, because HTML is stored in the post_content, just like normal. This is also much faster than doing on-the-fly Markdown conversion on every page load. It's only done once! When you re-edit the post, the markdown version is swapped into the editor for you to edit. If something external updates the post content, you'll lose the Markdown version.

Installation

  1. Upload the markdown-on-save folder to your /wp-content/plugins/ directory

  2. Activate the "Markdown On Save" plugin in your WordPress administration interface

  3. Create a new post with Markdown, and check the "This post is formatted with Markdown" box.

  4. Done! Now that post can be edited using Markdown, but will save as processed HTML on the backend.

Screenshots

  1. The meta box where you designate a post as containing Markdown. This is the only UI for the plugin!

Frequently Asked Questions

How do I use Markdown syntax?

Please refer to this resource: [http://michelf.com/projects/php-markdown/extra/](PHP Markdown Extra).

What happens if I uncheck the Markdown box?

Your post will no longer be interpreted as Markdown, and you may have to alter the post to remove Markdown formatting.

What happens if I decide I don't want this plugin anymore?

Just deactivate it. The Markdown version is stored separately, so without the plugin, you'll just revert to editing the HTML version.

Changelog

1.2.1

  • Play better with other plugins that also use PHP Markdown Extra

1.2

  • Update PHP Markdown Extra to 1.2.6
  • Keep track of which revisions were Markdown and which were not
  • Restore old revisions properly, including Markdown status
  • Fix a slashing bug that would prevent link titles from parsing
  • Fix a bug related to autosave
  • Use Dustin Curtis' Markdown logo as a toggle
  • Work on the WP-specific XML-RPC API in addition to the generic API

1.1.5

  • Fix a stripslashes() error

1.1.4

  • XML-RPC support (use to enable Markdown mode)

1.1.3

  • Disables the Visual Editor if the post being edited is in Markdown mode

1.1.2

  • Fix a slashes bug which would cause link titles to fail
  • Enable Markdown when posting remotely by using anywhere in post content

1.1.1

  • Fix bug which made the metabox show up on the Dashboard

1.1

  • Some extra nonce protection
  • Enable the plugin for all content types, not just posts

1.0

  • First public version
  • Fixed a regex bug that could break current menu highlighting. props skarab

Upgrade Notice

1.2.1

Update if another Markdown plugin isn't playing well with Markdown on Save

1.1.5

Update to fix issues with slashes disappearing.

1.1.4

Upgrade to use Markdown over XML-RPC (use to enable it)

1.1.3

Upgrade to fix the bug that caused "titles" in links to fail parsing and to disable the visual editor in Markdown mode

1.1.2

Upgrade to fix the bug that caused "titles" in links to fail parsing

1.1.1

Prevents the meta box from mistakenly appearing on the Dashboard

1.1

Enables the Markdown option for all content types, instead of limiting it to posts

markdown-on-save's People

Contributors

evansolomon avatar markjaquith avatar nb avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.