GithubHelp home page GithubHelp logo

brrd / abricotine Goto Github PK

View Code? Open in Web Editor NEW
2.6K 2.6K 163.0 53.54 MB

Markdown editor with inline preview

License: GNU General Public License v3.0

JavaScript 77.13% CSS 7.25% HTML 3.64% Less 11.98%
abricotine electron-app gfm inline-preview markdown markdown-editor text-editor

abricotine's People

Contributors

agentepsilon avatar ayaankazerouni avatar belenos avatar brrd avatar casidiablo avatar chungzh avatar cicithesquirrel avatar darahak avatar dependabot[bot] avatar developit avatar devgar avatar fionatagious avatar gladoskar avatar jacobmischka avatar jimmypury avatar jumanjii avatar kawarimidoll avatar lcfd avatar matteocampinoti94 avatar niktekusho avatar nloveladyallen avatar oyox avatar patontheback avatar radarhere avatar seifferth avatar slrussel avatar stolksdorf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

abricotine's Issues

Potential support for vim keybindings and pandoc syntax

Thanks for making Abricotine! I really enjoy its look and feel, and the ability to inline images is great!

I wonder if you have any plans to support some common vim-style keybindings and more of the pandoc markdown spec (like sub- and superscript and footnotes). I realized those feature requests might be a bit esoteric, but I am just curious if these are on your roadmap at all.

LaTeX Equations Support

Hi,

Could you please add support for LaTeX Equations support.
The reference I can give you is StackEdit.

We really need new MD editor, bravo!

Custom delimiters for math fomulas (inline and display)

From #7

Would it be possible to display math when wrapped only in single '$'s too (or is there an easy way to hack to config to allow this)? Doing so would help to make Abricotine more compatible with Pandoc Markdown.

More generally, the idea would be to allow the use of any delimiter with a new option in config.

Inline and display math should be supported.

32 bit windows package is broken (v. 0.2.2)

Linux users reported issues with the linux 32 bit package (see #6). Now I wonder if everything is working properly with the 32 bit windows prebuilt binary : Abricotine-win32-ia32.zip in version 0.2.2.

If you use (or tried to use) it then your feedback would be really appreciated here.
Thank you.

Implement CriticMarkup

CriticMarkup is an extension for Markdown whose goal is to allow authors to add comments or suggestions of modification in a similar way of the features present in Microsoft Word or LibreOffice Writer. Not only a syntax extension, CriticMarkup can also have a system similar to pull request: the author can accept or reject the modification proposition (still similar to what is already available in common text processors).

Refer to the user’s guide and to the specifications.

CMD + V in the save window throws an error

OSX.
When using CMD + V to paste a piece of text (for example copying the title and using that as the name I would like to save the document) an error occurs

A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read property 'webContents' of undefined
at sendCommand (/Applications/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:29:16)
at /Applications/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:37:42
at MenuItem.click (/Applications/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu-item.js:56:20)
at Function.delegate.executeCommand (/Applications/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu.js:125:71)

Theming Support

First of all, thank you for this amazing app ! I've been searching for this for almost 2 years... I was using StackEdit until now.

I know you've planned theming support, as you mentioned it on another issue, but i thought this "feature request" deserve a proper issue (more visibility for future users).

Thanks again for your hard and much appreciated work ! :)

icon on linux package

Hi! I downloaded the package for Linux, but it doesn't include the icon. Is it possible to add it, please?

Thank you

2-in-1 feature request: background highlighting, for code and long lines

Great job on Abricotine! Just took it for a spin and I'm very impressed :-)

You know how some people prefer to write their Markdown in 80-character lines? How about adding a feature to highlight characters that make a line longer than an user-set limit?

Also, what about giving backticked code a grayish background so it's easier to tell apart from regular text?

Changing the editor's font family

Great app! I've been looking for something like this for ages.

I wanted to change the font family of the editor (the writing area) so I added this to config.json:

  "editor": {
    "font-size": "16px",
    "font-familiy": Inconsolata
  },

However, nothing happened.

Is this a bug? Or there's another way of doing it?

Menu and shortcut issues (OS X)

Functions like New, Open, Save, etc. that by convention are in the File menu are in the Abricotine menu on OS X.

Functions like About, Preferences, Quit, etc. that by convention are in the application menu are completely scattered: About is in the Help menu (like Windows), Preferences are in the Edit menu, and Quit apparently does not exist.

Preferences is normally tied to ⌘, instead of strikethrough. Quit (which doesn't exist in Abricotine) is normally tied to ⌘Q instead of Close Window. Close Window and Close Document, tied to ⌘Q and ⌘W respectively, appear to be completely identical. (See #32 for more about Close Window/Quit.)

Functions currently use mostly sentence case instead of title case, as is convention on OS X and Windows.

Bad support for Persian!

Hey there

I tried this application to type in persian, but it seems there's not a correct support for Persian.

Persian is a RTL (righ-to-left) language (like Arabic, Hebrew, probably Japanese and more). Words are typed from right side to left. There's two point here. Let me show them in CSS:

    direction: rtl;
    text-align: right;

Support for RTL is useful when you have a mixture of English and Persian words that is supported rarely by editors. Some editors like Leafpad/gedit support both to start strings from right side of editor and keep them RTL. Some of them do not have support for neither 'aligning to right' nor RTL, as in: kate.

But, all of them have support for strings purely written in Persian. What do I mean? Here is an example:

       # Hello World
       # سلام دنیا
       # Hello = سلام
       # World = دنیا

the world 'سلام' is the first typed word and the word 'دنیا' is the next. The above phrase 'سلام دنیا' is shown correctly while it's not still RTL or not showed in right side, but it's meaningful.

Here is what happens in Abricotine:

per

  • As you see, I typed سلام دنیا, but it shows: دنیا سلام
  • There's also a bigger problem: it does not show each word correctly. Please compare words within the editor side and words within the panel (table of contents). The 'م' should not be under 'سلا'.

Summary: All things are shown correctly in the table of contents sidebar, but they are disarranged in the editor side.

Accelerator keys in win32-x64 not raising menus

When I press an accelator for one of the menus in Abricot in Win7, for example Alt-V for 'View', the accelator is displayed in the menu bar as the usual underline character, but the menu itself isn't displayed.

Menus work properly via the mouse however.

Bad config path

Abricotine configuration files should be stored in /home/$USER/.config/Abricotine instead of /home/$USER/.config/chromium/Abricotine.

Related to electron/electron#3709. We need to update electron.

This is maybe involved in issue #45.

relative image paths do not get updated on export

When using the Insert-->Image-->Copy all images in a local folder function it copies all the pictures into ./$FILENAME_files/$PICTURE

However it does so relative, meaning that if one exports the html via Export as HTML to a location other than the storage directory of the markdown file the images aren't found and therefore appear as a broken link.

I see 2 options that should fix the issue:

  • Set the path to an absolute one
  • copy the files over to the new location.

Problem running on ubuntu 15.10

When I tried to run it
the following error was shown

A JavaScript error occurred in the main process
Uncaught Exception:
Error: /home/abdulla/apps/Abricotine-linux-ia32/resources/app.asar.unpacked/node_modules/spellchecker/build/Release/spellchecker.node: wrong ELF class: ELFCLASS64
    at Error (native)
    at Object.module.(anonymous function) (ATOM_SHELL_ASAR.js:137:20)
    at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:148:18)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/abdulla/apps/Abricotine-linux-ia32/resources/app.asar/node_modules/spellchecker/lib/spellchecker.js:2:16)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)

Only first latex equation rendered in line

Hi,

Firstly, thanks for the great tool. It seems that there is a small bug where only the first latex equation in each line is rendered.

e.g.
$$ x^2 $$ and $$ x^3 $$

results in just the x^2 being rendered. Unless there is a bug with my setup.

p.s. had a look in cm-extend-autopreview.js but my javascript abilities are non-existent

Is this a joke

Half the announced features are simply not working.
Downloaded the 32 bit version to my windows 8 64 .. didn't work! Downloaded the 64bit version. Could run it. But did not do anything of what it announces. No image paste. No auto preview. No nothing basically.

Devs please stop joking please.

Command Q has two different mappings

Cmd + Q is the default Mac shortcut to close the application

This is also mapped to Quote in the Mac OSX client

Therefor I cannot close the application with the shortcut.

Using the TAB key for indenting

Given all the formatting going on, it is a bit difficult to keep track of the spaces used for indentation.
It'd be great if when editing a list-item, pressing Tab will automatically indent the item to a nested list. Much like it does in MS Office.

Use Katex for rendering math

From #7

I know MathJax is being used now, but I would like to recommend Katex.
The basic reason is, it is fast, very much faster than MathJax. It does lack extremly advanced features, But it has many.
There is also a package of markdown-katex for atom.

MathJax is definitely very heavy, an alternative solution like Katex would be much appreciated.

Underlined headers displayed incorrectly

The level 1 and 2 titles, when created using an underlining row of = or -, are not displayed correctly. The actual text of the title remains in the common style and is not enlarged. Below is a screenshot.

selection_516

OSX version cannot open new file after closing window

This error message pop up when trying to open new files after closing the old windows.

Uncaught Exception:
TypeError: Cannot read property 'webContents' of undefined
at sendCommand (/opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:29:16)
at /opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/app.asar/app/abr-menu.js:37:42
at MenuItem.click (/opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu-item.js:56:20)
at Function.delegate.executeCommand (/opt/homebrew-cask/Caskroom/abricotine/0.2.2/Abricotine.app/Contents/Resources/atom.asar/browser/api/lib/menu.js:125:71)

Linux 32 error: wrong ELF class: ELFCLASS64

Unzipped the ia32 version and run on terminal. See if that helps trace something:

fiatjaf@mises ~/D/Abricotine-linux-ia32> ./Abricotine 
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /home/fiatjaf/Desktop/Abricotine-linux-ia32/resources/app.asar.unpacked/node_modules/spellchecker/build/Release/spellchecker.node: wrong ELF class: ELFCLASS64
    at Error (native)
    at Object.module.(anonymous function) (ATOM_SHELL_ASAR.js:137:20)
    at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:148:18)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/fiatjaf/Desktop/Abricotine-linux-ia32/resources/app.asar/node_modules/spellchecker/lib/spellchecker.js:2:16)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
^C⏎                                                                                                                                                                                                                               

fiatjaf@mises ~/D/Abricotine-linux-ia32> node --version
v5.4.0
fiatjaf@mises ~/D/Abricotine-linux-ia32> cat version 
v0.35.1                                           

Menue bar not accessable in fullscren mode

Problem:
You can't access the menu bar in full screen mode. with a permanent menu bar at the top the full screen mode wouldn't look that nice.
Suggestions:
the menu bar only shows up when you move the pointer to the upper border of the screen so it behaves like a task bar in auto-hide mode.
the menu bar elements are in the right-click menu.
you can hide and show the menu bar.

Multi-Tab Support

Hi,
To avoid extra lengthy document, i used to divide it in smaller parts.
I think tabs support would be a very useful addition. Having multiple windows opened is a bit painful.

Thanks again for this brilliant app !

Overriding system shortcuts

Please, never override system shortcuts...
Format > Quote (Command + Q)
Quit app > (Command + Q)

I am not able to close this app unless I use the doc currently.

Font issue on Windows 10

Hi I really like the look & feel of Abricotine editor.

I've noticed an issue with the font on Windows which is kind of strange:

font-issue

It's almost like the anti-aliasing is missing or something similar.

Can't install with Homebrew

$ brew cask install abricotine
Error: Cask 'abricotine' definition is invalid: Bad header line: parse failed

German spell checker

If letters with diacritical marks (like ä, ö, ü, á, è) are in words, the spell checker says, that the word has some spelling mistakes ( red jagged underline ). I think it is not only this, it looks like Abricotine does generally not support UTF-8? Are there any plans to support it in the feature?

Except this, it works very fine

Small issue on TODO list and return

Hi,

Here an example of the behaviour of Abricotine when hitting "Enter" at the end of a TODO line, it does not create another todo on the new line.

gif

Then as a second issue, when selecting multiple lines and toggling TODO style, it mess up with the star character.

[Feature Request] : Auto Saving

I thank the developers for the amazing markdown editor. I would like to recommend auto saving documents at any change.

The inspiration is from another electron app FromScratch.

Cannot launch app from the command line?

Not sure what's happening yet, but I've tried launching the application from the command line as I would for any other app -- open <filename> -a Abricotine -- and the application launches but does not spawn any windows. When I launch the app with Finder, it seems to do fine.

Error on executing Abricotine latest version

Using Windows 7 64 bit
Using (or trying to use) Abricotine, latest version.

On first run, it said it would update configuration files to the latest version.

On second run gives the following error:
2016-03-29_04-43-38

Multiline autopreview (LateX fomulas, iframes...)

From #47:

Previewing latex equations on multiple lines doesn't render:

$$  
x^2  
x^3  
$$

Abricotine autopreview is currently processed line by line (code here and here). Right now, extending this system to multiple lines is not easy.

For simplicity and performances considerations, we may consider rewriting CodeMirror's markdown mode to add custom classes on previewable tokens, then use the markText API to create preview elements according to user configuration in a second time.

Distribution on OS X (release page, brew cask, etc.)

So I liked this project so much that I'd love to help maintain a cask, so OS X users just have to run brew cask install abricotine. I went ahead and opened a PR on hombrew-cask: #19095. The version I built was based on the current master branch (i.e. 9efa2c6)

Is there a reason why you haven't done this before? If it's just lack of time/resources I volunteer to maintain this.

homebrew-cask guys say they can accept this cask as official if the URL used is referenced either in this repo or in the website. For obvious reasons, they don't like the idea of a third party developer building and hosting the app.

Lines-wrapping in lists

When a list item is line-wrapped, the line generated by the wrap is not indented. This seems very confusing.

image

Indenting it to match the start of the line will look better, as it will be clearer that it is part of the original line.
image

Ubuntu packages

Hi. This looks great. I'm hoping for a .deb soon (and preferably a PPA too, to keep it up to date automatically). Thanks!

Support for providing custom CSS in HTML export

It would be nice if you could append or replace the CSS that's used by default in HTML export, or remove it entirely, without having to edit the resulting HTML file.

There could be support for JavaScript as well, that would be automatically inserted in the <head> or at the end of the <body>.

Custom template

Hi,

I looked at https://github.com/brrd/Abricotine/blob/master/docs/templates.md to create and use my own template.

I went to config directory with :
image

Then in the template folder, I copy paste the default one and renamed it "custom" :
image

I edited template.json like this :

{
    "name": "custom",
    "label": "Custom template",
    "accelerator": "CmdOrCtrl+E",
    "author": "Romain",
    "description": "Created from Abricotine Default Template",
    "license": "AGPL v3"
}

Then I edited the style.css with :
image

Then I edited the Abricotine config.json file to change the preview template :
image

Then I restarted Abricotine and I still see the default render.

Did I missed a step ?

If I export using my custom template, it works :
image

image

Abricotine is broken after a configuration update (startup dialog)

In both cases, If I run it via a terminal, I get this warning:

For the one installed via AUR:

      (electron) ipc module is deprecated. Use ipcMain module instead.
      { [Error: ENOENT: no such file or directory, open '/home/$USER/.config/chromium/Abricotine/app/schema.json']
      errno: -2,
      code: 'ENOENT',
      syscall: 'open',
      path: '/home/$USER/.config/chromium/Abricotine/app/schema.json' }
      (electron) loadUrl is deprecated. Use loadURL instead.

For the pre-made linux package that I have downloaded:

$Abricotine-linux-x64$ ./Abricotine 
    (electron) ipc module is deprecated. Use ipcMain module instead.
    (electron) loadUrl is deprecated. Use loadURL instead.

cat /home/$USER/.config/chromium/Abricotine/app/schema.json: { "schema": 1 }

Here is what I got when I run it for the first time:

err

I chose YES And nothing happened: https://ptpb.pw/9hNk --> Ctrl+C

Next time I clicked on NO and it came up with the warning that I put it above.

 My OS: Archlinux 64 bit
 My Desktop: Plasma v5.5

Pandoc integration

It would be nice to be able to export to PDF, LaTeX and all the other formats that pandoc supports.

See: http://pandoc.org/ for details.

If this would be integrated in a good way, this would be a good competitor for Office suite document editors in my opinion.

Maybe this is a little bit too much to ask, but support for pandoc-citeproc would be very nice too, since it would enable people to write academic articles with this Markdown editor.

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.