Git Product home page Git Product logo

Comments (6)

xijo avatar xijo commented on July 27, 2024 1

Hi @RummanSadiq,

I'd say it depends on how big the differences between "normal" markdown and slack-flavored are.
Do they ignore other markdown or do we really have to unregister existing converters? Are there any other differences in the handling of the nodes itself?

Anyway it would be great to get you started on open source, so please feel free to submit a PR, we can discuss implementation detail there, right?

from reverse_markdown.

gabrielmdeal avatar gabrielmdeal commented on July 27, 2024 1

I ended up rolling my own. But I do not own the code, so there is nothing I can share. 😞

from reverse_markdown.

RummanSadiq avatar RummanSadiq commented on July 27, 2024

@xijo thoughts?

from reverse_markdown.

gabrielmdeal avatar gabrielmdeal commented on July 27, 2024

I also need to conver HTML to Slack's "mrkdwn". I was just trying to figure out whether I should roll my own, improve https://github.com/everwise/slack_transformer or add a Slack flavor to reverse_markdown.

I would be very curious to see what you did, @RummanSadiq.

@xijo, Slack's markup is quite different from Markdown, although they look very similar at first glance. For example:

  • **bold** in markdown is *bold* in Slack
  • Slack does not support headers
  • Slack does not support lists
  • [name](https://google.com) in markdown is <https://google.com|name> in Slack

Some markup works the same, like `code`, ~strike~, _italic_ and > blockquote.

https://api.slack.com/reference/surfaces/formatting

from reverse_markdown.

jaredplanter avatar jaredplanter commented on July 27, 2024

Hey @gabrielmdeal,

Did you ever get anywhere with your need to convert HTML to Mrkdwn?

I have the same need now and the only libraries available (like slack_transformer) haven't been touched in 3+ years.

Thanks!

from reverse_markdown.

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.