This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { Component, ViewChild } from '@angular/core'; | |
| import { Content } from 'ionic-angular'; | |
| import { NavController } from 'ionic-angular'; | |
| import marked from 'marked'; | |
| @Component({ | |
| selector: 'page-home', | |
| templateUrl: 'home.html' | |
| }) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | convert(this) { | |
| if(this.toggleVal==true){ | |
| if(this.plainText && this.plainText!=''){ | |
| let plainText = this.plainText | |
| this.markdownText = marked(plainText.toString()) | |
| this.content = this.markdownText | |
| }else{ | |
| this.toggleVal=false | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | textarea { | |
| max-width: 100%; | |
| width: 100%; | |
| height: 100vh; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <ion-header> | |
| <ion-navbar> | |
| <ion-title>Home</ion-title> | |
| </ion-navbar> | |
| </ion-header> | |
| <ion-content padding> | |
| <h2>Welcome to Markdownify!</h2> | |
| <ion-item> | |
| <ion-label>Convert to Markdown</ion-label> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <h2>Welcome to Markdownify!</h2> | |
| <ion-item> | |
| <ion-label>Convert to Markdown</ion-label> | |
| <ion-toggle></ion-toggle> | |
| </ion-item> | |
| <ion-item> | |
| <ion-textarea rows="6" placeholder="Strat writing your markdown below..."></ion-textarea> | |
| </ion-item> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <h2>Welcome to Markdownify!</h2> | |
| <ion-item> | |
| <ion-textarea rows="6" [(ngModel)]="plainText" placeholder="Strat writing your markdown below..."></ion-textarea> | |
| </ion-item> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "name": "electron-markdownify", | |
| "version": "1.1.6", | |
| "description": "A minimalist Markdown Editor", | |
| "main": "main.js", | |
| "productName": "Markdownify", | |
| "scripts": { | |
| "start": "electron main.js", | |
| "build": "rm -rf dist && gulp build" | |
| }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Commented out for brevity | |
| $(document).ready(function(){ | |
| $('#note').bind('input propertychange', function(){ | |
| localStorage.setItem("note", $(this).val()); | |
| }); | |
| if(localStorage.getItem("note") && localStorage.getItem("note")!=''){ | |
| var noteItem = localStorage.getItem("note") | |
| $('#note').val(noteItem); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "short_name": "Notepad", | |
| "name": "Notepad", | |
| "display": "standalone", | |
| "icons": [ | |
| { | |
| "src": "img/icon-48.png", | |
| "sizes": "48x48", | |
| "type": "image/png" | |
| }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | importScripts('js/cache-polyfill.js'); | |
| var CACHE_VERSION = 'app-v1'; | |
| self.addEventListener('install', function (event) { | |
| event.waitUntil( | |
| caches.open(CACHE_VERSION) | |
| .then(function (cache) { | |
| console.log('Opened cache'); | |
| return cache.addAll(CACHE_FILES); |