summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Editor.md24
1 files changed, 16 insertions, 8 deletions
diff --git a/Editor.md b/Editor.md
index 158b660..243cbbb 100644
--- a/Editor.md
+++ b/Editor.md
@@ -5,8 +5,10 @@ If you wanna link an item of your blog application, please don't put the absolut
## Dynamic linking of resources
You can link resources which are located anywhere within your installation dynamically, either relative to your base directory or relative to your `rsrc` directory where you store your content like images and other files (this is the preferred method to include an image within your items content):
-* Write `{BASE["other/directory/"]}` into the editor and get `https://hostname/other/directory/`
-* Write `{FILE["image/foobar.jpg"]}` into the editor and get `https://hostname/rsrc/image/foobar.jpg`
+* Write `{BASE["other/directory/"]}` into the editor and get:
+`https://hostname/other/directory/`
+* Write `{FILE["image/foobar.jpg"]}` into the editor and get:
+`https://hostname/rsrc/image/foobar.jpg`
### Combined with markdown syntax for displaying images
* Write `![A foobar image]({FILE["image/foobar.jpg"]})` into the editor and get `<img src="https://hostname/rsrc/image/foobar.jpg" alt="A foobar image" />`
@@ -14,14 +16,20 @@ You can link resources which are located anywhere within your installation dynam
## Dynamic linking of pages, posts and users
You have to know the unique ID of the item which you can find in the administration area, so that the system can identify it and replace the code with the items URL (if you put an ID into the syntax which does not exists, the output in your HTML will be just `{undefined}`):
-* Write `{PAGE[123]}` into the editor and get `https://hostname/page/page-with-id-123/`
-* Write `{POST[123]}` into the editor and get `https://hostname/post/post-with-id-123/`
-* Write `{USER[123]}` into the editor and get `https://hostname/user/user-with-id-123/`
+* Write `{PAGE[123]}` into the editor and get:
+`https://hostname/page/page-with-id-123/`
+* Write `{POST[123]}` into the editor and get:
+`https://hostname/post/post-with-id-123/`
+* Write `{USER[123]}` into the editor and get:
+`https://hostname/user/user-with-id-123/`
### Combined with markdown syntax for URL linking:
-* Write `[A cool page]({PAGE[123]})` into the editor and get `<a href="https://hostname/page/page-with-id-123/">A cool page</a>`
-* Write `[A cool post]({POST[123]})` into the editor and get `<a href="https://hostname/post/post-with-id-123/">A cool post</a>`
-* Write `[A cool user]({USER[123]})` into the editor and get `<a href="https://hostname/user/user-with-id-123/">A cool user</a>`
+* Write `[A cool page]({PAGE[123]})` into the editor and get:
+`<a href="https://hostname/page/page-with-id-123/">A cool page</a>`
+* Write `[A cool post]({POST[123]})` into the editor and get:
+`<a href="https://hostname/post/post-with-id-123/">A cool post</a>`
+* Write `[A cool user]({USER[123]})` into the editor and get:
+`<a href="https://hostname/user/user-with-id-123/">A cool user</a>`