Giter VIP home page Giter VIP logo

word-to-markdown's People

Contributors

chaosmail avatar tomseldon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

word-to-markdown's Issues

Fix CI coverage reports

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).

Online: Convert selected text to markdown

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.

Add ability to run end-to-end tests

  • Create Gulp task(s) to run Protractor
  • Add sample feature file / steps to confirm that Protractor can run correctly

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.

Mobile: Get entire document as markdown

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.

Improve app bootstrapping when in non-Office environment

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.

Proposed solution:

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.

Change to using TypeScript

App can be incrementally changed over to TypeScript. This is a nice to have and I'll probably look at this after first release.

Mobile: Convert selected text to markdown

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.

Remove comments from generated markdown

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.

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.