Giter VIP home page Giter VIP logo

Comments (6)

elkcityhazard avatar elkcityhazard commented on August 20, 2024

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.

piko-piko avatar piko-piko commented on August 20, 2024

Thank you for your reply! Unfortunately changing it to three dashes does not change anything
1709115808

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.

elkcityhazard avatar elkcityhazard commented on August 20, 2024

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.

piko-piko avatar piko-piko commented on August 20, 2024

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)
1709189051
(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.

thebaer avatar thebaer commented on August 20, 2024

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.

piko-piko avatar piko-piko commented on August 20, 2024

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
1711105595

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
1711106707

from writefreely.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.