Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Fix readme code formatting #60

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ in a template file called `inline-image.php`:
if ( is_array( $exif_data ) ) {
echo '<ul class="image-meta">';
foreach ( $exif_data as $field => $value ) {
** echo '<li>' . $field . ':** ' . $value . '</li>';
echo '<li>' . $field . ': ' . $value . '</li>';
}
echo '</ul>';
}
Expand All @@ -86,7 +86,7 @@ in a template file called `inline-image.php`:
### Data Migration ###

The plugin comes with two [WP-CLI](http://wp-cli.org) commands to migrate images in your existing content into the `[img]` shortcode format used by
**this plugin. _Note:** if it isn't clear, this is an early release -- use at your own risk, and make sure you've backed up your posts before migrating!_
this plugin. _Note: if it isn't clear, this is an early release -- use at your own risk, and make sure you've backed up your posts before migrating!_

`wp image-shortcake migrate <ids> [--dry-run]`

Expand All @@ -102,10 +102,10 @@ This command finds all `[img]` shortcodes in the content of any of the posts spe
## Screenshots ##

### 1. This is the shortcode UI form as accessed from **Insert Media > Insert Post Element**. (Note that you can also insert images as usual, by inserting them in the Media Library - they will be transparently converted into shortcodes behind the scenes for you.) ###
![This is the shortcode UI form as accessed from **Insert Media > Insert Post Element**. (Note that you can also insert images as usual, by inserting them in the Media Library - they will be transparently converted into shortcodes behind the scenes for you.)](http://s.wordpress.org/extend/plugins/image-shortcake/screenshot-1.png)
![This is the shortcode UI form as accessed from **Insert Media > Insert Post Element**. (Note that you can also insert images as usual, by inserting them in the Media Library - they will be transparently converted into shortcodes behind the scenes for you.)](http://ps.w.org/image-shortcake/assets/screenshot-1.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps.w.org/image-shortcake/assets/screenshot-1.png is a broken link. You need to set the screenshot_url parameter in Gruntfile.js. See example here: https://github.com/pantheon-systems/wp-redis/pull/29/files#diff-35b4a816e0441e6a375cd925af50752cR11


### 2. Once inserted into a post, the image preview renders in the editor just as it normally would. The Shortcake plugin's edit/delete buttons are available to modify the shortcode through the provided UI. ###
![Once inserted into a post, the image preview renders in the editor just as it normally would. The Shortcake plugin's edit/delete buttons are available to modify the shortcode through the provided UI.](http://s.wordpress.org/extend/plugins/image-shortcake/screenshot-2.png)
![Once inserted into a post, the image preview renders in the editor just as it normally would. The Shortcake plugin's edit/delete buttons are available to modify the shortcode through the provided UI.](http://ps.w.org/image-shortcake/assets/screenshot-2.png)


## Changelog ##
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"grunt-contrib-watch": "^0.6.1",
"grunt-phpcs": "^0.4.0",
"grunt-wp-i18n": "^0.5.0",
"grunt-wp-readme-to-markdown": "~0.9.0"
"grunt-wp-readme-to-markdown": "~1.0.0"
}
}