tomseldon / word-to-markdown Goto Github PK
View Code? Open in Web Editor NEWOffice 365 add-in for converting Word documents to markdown
Office 365 add-in for converting Word documents to markdown
Existing set of features aren't covered by any functional tests. There should be some in place to help protect against regression.
Since moving to using TypeScript, the coverage reports either fail or are wrong. This needs to be fixed so we can go back to failing CI builds at a certain threshold (see #20).
When converting the HTML returned by getSelectedDataAsync
it contains a comment with formatting and style data. This isn't being stripped away when converting to markdown.
Change repo name from hackathon to word-to-markdown
.
Blocked as no linting or code style checks in place yet
For desktop, we can get the selected text using HTML as the coercion type. It's unknown if this is available on the mobile version. If not, we need to investigate what coercion types are available and if we'll need an additional parser.
Blocked as we need an OOXML to HTML parser. For desktop, we can get the selected text using HTML as the coercion type. This isn't available using the online version of Word.
The app is bootstrapped when Office.initialise
is called. This is never called in non-Office environments (such as for developing in-browser or running e2e tests).
To work around this right now we just set a timeout for a time when the app should have been bootstrapped and if it hasn't, we expose a function on window
to manually bootstrap the app.
This makes development a pain and ideally it should be an automatic bootstrapping process when in a dev or test environment.
Set an environment var at build time which we can read in app.module.js
. If it's test
or development
then we should bootstrap the app on document.ready
rather than Office.initialise
.
Need to set an appropriate threshold value. Probably 90% per file.
Content service exposes getDocumentAsHtml
method, but actually just gets the selected text.
App can be incrementally changed over to TypeScript. This is a nice to have and I'll probably look at this after first release.
Blocked as we need an OOXML to HTML parser.
For desktop, we can get the selected text using HTML as the coercion type. It's unknown if this is available on the mobile version. If not, we need to investigate what coercion types are available and if we'll need an additional parser.
We can use this gist https://gist.github.com/chaosmail/938d7db693f72adb287b
Add Gulp task to lint / check code style
Files should meet the threshold set in #20
Could use Jasmine or Cucumber to write the tests. Preference for Cucumber, but not sure having the tests written in Gherkin adds much value in this case.
Should be able to run a Gulp task to run unit tests:
Blocked as no linting or code style checks in place yet
Fix issues with:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.