Giter Site home page Giter Site logo

Comments (4)

julianlam avatar julianlam commented on May 30, 2024 3

I made a library for it 😄 https://github.com/julianlam/adf-to-md

from md-to-adf.

bruno-morel avatar bruno-morel commented on May 30, 2024

Ah. the opposite then? :)
The parser inside this is probably invert-able...
How far this need to go? Is it just batch, or does it need to do 2 way sync/diffing?

from md-to-adf.

xmedeko avatar xmedeko commented on May 30, 2024

Get the ADF to HTML by API param expand=renderedFields, then you can use e.g. https://github.com/mixmark-io/turndown to convert HTML to Markdown.

Also see https://jira.atlassian.com/browse/JRACLOUD-77436 and the library https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/packages/editor/editor-markdown-transformer/

from md-to-adf.

julianlam avatar julianlam commented on May 30, 2024

It's also prudent to mention that it is not possible to translate ADF to Markdown in a complete way as the formats are not 1:1 compatible. ADF contains a superset of Markdown's features, and so you wouldn't be able to translate a lot of types (e.g. mention, media, panel, etc.) to markdown equivalents, as they don't exist.

It's still worth doing, so long as the source ADF just contains basic formatting, so I might end up creating a library for it.

from md-to-adf.

Related Issues (12)

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.