Comments (4)
I made a library for it 😄 https://github.com/julianlam/adf-to-md
from md-to-adf.
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.
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.
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)
- Support URLs and Email Addresses
- Backslash in the end should be hardBreak
- Support images
- Ordered lists broken
- Emoji are captured inside URLs
- Links are not formatted correctly
- Only a single hyperlink per paragraph appears to be detected
- No break possible between Lists & List items are each their own list
- Support divider HOT 1
- Support Github tables
- Support strikethrough HOT 1
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 md-to-adf.