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 all 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
3 changes: 3 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ module.exports = function( grunt ) {

wp_readme_to_markdown: {
your_target: {
options: {
screenshot_url: 'https://s.w.org/plugins/{plugin}/{screenshot}.png'
},
files: {
'README.md': 'readme.txt'
}
Expand Down
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.)](https://s.w.org/plugins/image-shortcake/screenshot-1.png)

### 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.](https://s.w.org/plugins/image-shortcake/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"
}
}