Giter Club home page Giter Club logo

Comments (6)

thousandtyone avatar thousandtyone commented on June 12, 2024 1

I am happy to take a stab at this if no-one else is working on this. I love the idea of supporting markdown and if this works, would we be open to the idea of also allowing markdown for posts? We can start with comments and see how it goes. Okay to take a quick attempt at this if no-one else is working on this?

I can try and submit a PR in a couple of weeks.

from dasblog-core.

poppastring avatar poppastring commented on June 12, 2024 1

@thousandtyone I wanted this to be option 2. Thanks for the checking!

from dasblog-core.

poppastring avatar poppastring commented on June 12, 2024

@thousandtyone Thanks!

from dasblog-core.

thousandtyone avatar thousandtyone commented on June 12, 2024

I've started working on this and have a quick question.

Today the HTML tags allowed are limited. By introducing markdown are we completely removing the limit on markdown options allowed. For example in my comment can I type "# Hello" and the converted HTML will convert it into <h1>Hello</h1> - or do we also wanted users to use a restricted set of mark down options like allowing just bold, italics etc.? When we talk of simplifying the code I am thinking we want to remove all restrictions and allow everything in comments that markdown allows (Even if it means users can now inject H1 and H2 headers using markdown). Is this understanding correct?

(Another option is we have the same set of restrictions on what kind of tags we support today but allow the users to enter these using markdown).

Which one of the two options are we leaning towards? 1) allow everything that markdown allows? 2) have the same set of restrictions that we have today but allow users to use markdown instead of HTML?

from dasblog-core.

thousandtyone avatar thousandtyone commented on June 12, 2024

@poppastring - I've submitted a PR. Feel free take a look at it and please do let me know if any changes are needed. I've documented it extensively in the PR comments. Also introduced a site.config setting to allow markdown which is off by default to retain backward compatibility. Feel free to review the PR and the comments associated with the PR and I'll be happy to make any modifications that might be needed. Please do let me know. Note: The PR goes with the option we discussed in the thread.

from dasblog-core.

poppastring avatar poppastring commented on June 12, 2024

#664

from dasblog-core.

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.