How can I view my readme.txt file to include inline images, videos...prior to submitting a New Plugin for review by wordpress.org?

I am a newbie and am likely asking for too much but here it is, I have written my first plugin and created a readme.txt file and tested it with the validator and it passes with flying colors.

I have read the posted question Adding Image in readme.txt file of wordpress plugin and it does not show the markdown syntax.

I feel a little uneasy about submitting the plugin to wordpress.org because I'm confused about referencing inline images and videos within the markdown syntax. The documentation does not specify if the images are located within the repository at a relative path or are they assumed to be in the assets directory (no path needed just the filename) or if you can indicate a url to a different server where the image can reside.

Example taken from daringfireball.net markdown syntax:

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

If I specified the following in my readme.txt

![Alt text](http://myserver.com/images/img.jpg "My title")

the validator at https://wordpress.org/plugins/about/validator/ does not show any indication that an image is referenced and displays no error.

Alternatly if the image being referenced is in the assets folder of my plugin how do I reference it?

![Alt text](/assets/img.jpg "My title")

I read that markdown also supports inline videos is this true? If so what is the syntax?

Finally it would be cool if there was a way to view the readme.txt file exactly how it would appear in the repository before submitting it. Is this possible?

Topic readme offline Wordpress

Category Web


When you submit a plugin to WordPress.org, you need to put everything in a zip file that you must put on your server. After validate it, you receive a mail with the new svn link for the validated plugin.

Readme.txt link all images to à folder called assets where banner, screenshots, logo take place.

For the validation, you can reproduce the folder structure in your zip, as it will be in the svn :

 Svn plugin folder
       ----- assets
              --- banner-772-250.png
              --- screenshot-001.png
              --- icon-128x128.png

       ----- trunk 
              --- readme.txt
              --- plugin_main.php
              --- includes
               .....

      ----- tags
              --- 1.0

When online, visitors will see the readme.txt from the trunk folder, the header line 'Stable tag' will redirect user to right current version (tags/1.0 or trunk) and generate the zip file for the download.

You can embed video from youtube with the markdown [youtube https://youtu.be.....].

An image markdown for image look like this for me: 1. The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).

What you will do, will always be under control, try and you'll be able to remove, modify everything on your svn directly.

You will find on the web, a lot readme.txt validator website. I use generatewp.com to create it quickly.

You can read the WordPress documentation about readme.txt : How the readme.txt works, the page explain how the file is parsed and a brief explain of the markdown.

You can also read the developper Plugin Handbook, the WordPress.org part, talks about svn, readme.txt, asset and update Plugin Handbook WordPress.org Hope it helps.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.