From 6463f8ef1f14b9e9e8e7eb354bb60e9475e8ca4c Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 4 Jun 2018 00:59:28 +0200 Subject: [PATCH] readme highlighting --- README.md | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 23d7410..51170b7 100644 --- a/README.md +++ b/README.md @@ -58,24 +58,26 @@ If no config file is found, you will be asked to provide your account address and an access token is generated. The config file can be found in `${HOME}/.config/expandurl-mastodon.json` and looks like this: +```JSON +{ + "account": "expandurl@example.social", + "access_token": "abc123", + "proxy": { - "account": "expandurl@example.social", - "access_token": "abc123", - "proxy": - { - "url": "socks5h://[::1]:1080/", - "user": "user23", - "password": "supersecure" - }, - "replace" : - { - "//amp\\." : "//", - "[\\?&]__twitter_impression=[^&]+" : "", - "[\\?&]utm_[^&]+" : "", - "[\\?&]wt_zmc=[^&]+" : "", - "[\\?&]wtmc=[^&]+" : "" - } + "url": "socks5h://[::1]:1080/", + "user": "user23", + "password": "supersecure" + }, + "replace" : + { + "//amp\\." : "//", + "[\\?&]__twitter_impression=[^&]+" : "", + "[\\?&]utm_[^&]+" : "", + "[\\?&]wt_zmc=[^&]+" : "", + "[\\?&]wtmc=[^&]+" : "" } +} +``` If you want to use a proxy or define your own replacements, you have to edit the configuration file manually. After the configuration file is generated, you can @@ -84,7 +86,9 @@ daemon. # Copyright - Copyright © 2018 tastytea . - License GPLv3: GNU GPL version 3 . - This program comes with ABSOLUTELY NO WARRANTY. This is free software, - and you are welcome to redistribute it under certain conditions. +``` +Copyright © 2018 tastytea . +License GPLv3: GNU GPL version 3 . +This program comes with ABSOLUTELY NO WARRANTY. This is free software, +and you are welcome to redistribute it under certain conditions. +```