Comments (6)
The issue here is the format of the ---
which you have with 4 -
instead of 3.
It works as expected if you remove the extra -
.
# Markdown
---
* [składnia markdown](https://url.com)
* [składnia markdown](https://url.com)
* [składnia markdown](https://url.com)
from writefreely.
Thank you for your reply! Unfortunately changing it to three dashes does not change anything
Note, that i'm talking about the "Drafts" view - in the actual post list it's being displayed as expected.
Also it's not only the separator, that breaks but also the list and hyperlinks (i must admit - it may be maybe hard to tell from the screenshots provided.)
I don't know what's the most appropriate place to quote on the markdown notation, but from what i understand three or more symbols have the same effect:
https://github.com/mattcone/markdown-guide/blob/master/_basic-syntax/horizontal-rules.md
https://www.markdownguide.org/basic-syntax/
from writefreely.
Okay, so what is actually happening is the inclusion of ---
is causing the markdown renderer to behave in an unexpcted way.
YAML uses three dashes (“---”) to separate directives from document content.
The way this output is setup is that it is not expecting this. Typically you would only use the three dashes if you need to define some directives i.e., variables that you need to pass into a template language.
title: hello world
tags:
- my tag 1
- my tag 2
your actual content
...
So what is actually happening is it is encoding the ---
as a part of your content because it is not expecting it to be passed in. If you remove the three dashes it will render correctly.
I guess the question for @thebaer is whether or not we strip these out somewhere since they aren't needed and causing this issue, or if it is enough to just not include them when writing content.
from writefreely.
Hm. I tried to swap the ---
for the <hr>
, since HTML is allowed inside Markdown, but the list and urls still do not render (again: in drafts, works in posts)
(edit: It's maybe worth noting that the <hr>
line is supposed to be there, but is not rendering too. Again: works in the post view/post list view)
The fact it works for the posts list makes me think it does not need to work differently for the drafts, unless you have to keep some special metadata there. Unless i completely misunderstand the idea and drafts are supposed to not render the Markdown. Which would be unfortunate - since it's a good way to give userr a way to test how the note is going to look like in the post list view, before it gets actually posted.
from writefreely.
Hi @piko-piko, this is all by design. The Drafts / post view is just meant to give you a quick overview of what each post is about -- so we purposely strip out the Markdown. If we didn't, this page could get extremely messy and long, with images and paragraphs and everything taking up space.
I'm open to hearing any reason we might change this, but the idea is that you'll click on the post itself to see exactly what it'll look like, and just use this Drafts view to quickly find the posts you're looking for.
from writefreely.
My expectation was that it would be consistent with the view of the timeline of the actually posted posts. I could argue that it provides a preview of how the post is going to look in the timeline. I completely understand your reasoning of having it as just a quick overview of posts. I think my only point is that some people might find it confusing, because it was my immediate thought and i had to go there to learn it is by design.
As an alternative solution maybe there is a better way to communicate it's just a plain text snippet of the post, but i have to admit i don't have a good idea for that
I think having the list of headlines with dates would be a proper visual distinction from the timeline view, but it also robs the user of the ability to at least peek to see what the post is about
Alternatively the post content could be written in monospace. I've added the ⬚ unicode to further distinguish the look and imply the altered notation is intentional, but it is still pretty arbitrary
from writefreely.
Related Issues (20)
- Add linux-musl-amd64 and macos-arm64 builds
- Font toggle isn't working in classics editor HOT 2
- Post attributed to non-existent collection
- RSS doesn't maintain formatting HOT 1
- Error setting up GotoSocial as OAuth provider: unable to exchange code for access token HOT 1
- Server down error HOT 1
- Complaint: Unable to sign-up HOT 2
- Unable to register "Server Error" HOT 1
- Viewing Customize -page causes error HOT 1
- mv-24
- Docker image for production
- The types of extractable image are very limited
- This page contains the following errors: error on line 1 at column 1: Start tag expected, '<' not found Below is a rendering of the page up to the first error. HOT 1
- Errors when setting up Email newsletter HOT 2
- support work over proxy HTTP/HTTPS/SOCKS
- No spacing between different paragraphs
- i need account postheaven HOT 1
- Limited post size on MySQL backend HOT 1
- Logging in after initial setup/config - "User doesn't exist" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from writefreely.