diff --git a/git-it-write.php b/git-it-write.php index a16ce5f..e31a8cc 100644 --- a/git-it-write.php +++ b/git-it-write.php @@ -5,10 +5,10 @@ Description: Publish markdown files present in a Github repository as posts to WordPress automatically Author: Aakash Chakravarthy Author URI: https://www.aakashweb.com/ -Version: 1.9 +Version: 2.0 */ -define( 'GIW_VERSION', '1.9' ); +define( 'GIW_VERSION', '2.0' ); define( 'GIW_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash define( 'GIW_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) ); diff --git a/includes/publisher.php b/includes/publisher.php index 4ce2ee3..15103db 100644 --- a/includes/publisher.php +++ b/includes/publisher.php @@ -51,6 +51,7 @@ public function __construct( GIW_Repository $repository, $repo_config ){ $this->uploaded_images = GIW_Utils::get_uploaded_images(); $this->parsedown = new GIW_Parsedown(); + $this->parsedown->setUrlsLinked(false); $this->parsedown->uploaded_images = $this->uploaded_images; $this->allowed_file_types = Git_It_Write::allowed_file_types(); diff --git a/readme.md b/readme.md index 8fc0e90..a9d6e4e 100644 --- a/readme.md +++ b/readme.md @@ -20,11 +20,11 @@ the post type supports "hierarchy" i.e. creating posts level by level, like `/pa **File structure in the GitHub repository:** - docs\ - guide\ + docs/ + guide/ introduction.md getting-started.md - help\ + help/ faq.md **Generated web sides:** @@ -69,7 +69,7 @@ the post type supports "hierarchy" i.e. creating posts level by level, like `/pa ### 🥗 Recommendation -It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs\reference\my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder. +It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs/reference/my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder. ### 🏃‍♂️ Using the plugin @@ -114,4 +114,4 @@ Yes, if you want to pull posts from a branch in a repository then you can specif ### Can I pull posts from a specific folder in the repository ? -Yes, if you want to pull posts from the folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website\main\docs` and if you want to pull only from docs folder, then you can specify `website\main\docs` in the plugin settings. +Yes, if you want to pull posts from the folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website/main/docs` and if you want to pull only from docs folder, then you can specify `website/main/docs` in the plugin settings. diff --git a/readme.txt b/readme.txt index a7d45cd..b55a3fe 100644 --- a/readme.txt +++ b/readme.txt @@ -2,13 +2,13 @@ Contributors: vaakash Author URI: https://www.aakashweb.com/ Plugin URI: https://www.aakashweb.com/wordpress-plugins/git-it-write/ -Tags: github, markdown, editor, publish, posts, wordpress, import, custom post types +Tags: github, markdown, editor, publish, posts Donate link: https://www.paypal.me/vaakash/ License: GPLv2 or later Requires PHP: 5.3 Requires at least: 4.4 -Tested up to: 6.5.2 -Stable tag: 1.9 +Tested up to: 6.6.1 +Stable tag: 2.0 Publish markdown files present in a GitHub repository as posts to WordPress automatically @@ -77,7 +77,7 @@ Then below posts will be created like below (if permalinks are configured and th ### 🥗 Recommendation -It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs\reference\my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder. +It is recommended that a permalink structure is enabled in the WordPress site so that, if you have file under `docs/reference/my-post.md` then a post is published like `https://example.com/docs/reference/my-post/`. This will be the result when post type has hierarchy support. They will be posted level by level for every folder in the repository. The folder's post will be taken from the `index.md` file if exists under that folder. ### 🏃‍♂️ Using the plugin @@ -126,7 +126,7 @@ Yes, if you want to pull posts from a branch in a repository then you can specif ### Can I pull posts from a specific folder in the repository ? -Yes, if you want to pull posts from a folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website\main\docs` and if you want to pull only from docs folder, then you can specify `website\main\docs` in the plugin settings. +Yes, if you want to pull posts from a folder in a repository then you can specify it in the plugin's repository settings page. For example, if a repository has a folder `website/main/docs` and if you want to pull only from docs folder, then you can specify `website/main/docs` in the plugin settings. ## Screenshots @@ -142,6 +142,9 @@ Yes, if you want to pull posts from a folder in a repository then you can specif ## Changelog +### 2.0 +* Fix: Disable inline URLs from being converted to link tags. (Thanks to @SienciLabs for the report) + ### 1.9 * Fix: Filename with multiple dots are ignored.