Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Summary] Advanced command line interface support #1999

Open
abnerlee opened this issue Dec 2, 2018 · 26 comments
Open

[Summary] Advanced command line interface support #1999

abnerlee opened this issue Dec 2, 2018 · 26 comments

Comments

@abnerlee
Copy link
Contributor

abnerlee commented Dec 2, 2018

Use command line to let Typora:

@abnerlee abnerlee changed the title Command line interface Advanced command line interface Dec 2, 2018
@abnerlee abnerlee changed the title Advanced command line interface Advanced command line interface support Dec 2, 2018
@nilsj
Copy link

nilsj commented Feb 12, 2019

One slightly strange use case of mine of "Create file if not exists" i'd like to add to consideration:
Do not create the new file directly on disk. Only create a buffer (or whatever the typora equivalent is), and only create the file if it is saved.
I use this with sublime text to create possibly temporary notes via a keyboard shortcut.
When i want to save the note, I have already specified a name programmatically so I don't have to bother giving it a name.
I'd love to replace sublime text with typora for my notes.

@GiovanH
Copy link

GiovanH commented Feb 16, 2019

One note about this: the main reason I need CLI support is to integrate Typora's non-markdown features, like mermaid charts. Ideally, a simple way to programatically replicate the "File->Export->HTML" option.

@abnerlee abnerlee changed the title Advanced command line interface support [Summary] Advanced command line interface support Mar 9, 2019
@zerostone
Copy link

Desire the command line export feature

@susu3621
Copy link

Me too, desire the command line export feature.
It's awesome tool, we are using it to replace MS word :-), for document automation.

@gudonglaile
Copy link

Open the file and jump to a specific line number, like Notepad++ does:
start notepad++ "some file.txt" -n100 -c8
start typora "some file.md" -n100 -c8
It is extremly useful to be called by text file searching tools like FileLocator!!!

@GiovanH
Copy link

GiovanH commented Jan 22, 2020

I'm very disappointed that there's been little to no official follow up on this issue for almost two (edit: three) years. As I've mentioned, this is not just an annoyance or a nice feature request: not having these features exposed in a practical way (and the absence of CLI options for conversion and processing) makes Typora markdown files nonstandard and non-portable, which really defeats the purpose.

I'm disappointed and frustrated, and I'm going to have to look into converting all my markdown documents into a standard, useful form. With no support or even a commitment of support, I can no longer even recommend Typora.

@AlexanderMattheis
Copy link

AlexanderMattheis commented Feb 22, 2020

Yeah that would be one of the greatest features ever. I've implemented once a Powershell-script to export my Word documents to PDF (I need PDFs to read them on my E-Book Reader and Smartphone):

https://github.com/AlexanderMattheis/relationship-enhancement-scripts/blob/master/src/RecursiveDocToPdfConverter.ps1

Now, I want write me a a Bash script for Typora, since I've switched to Linux Mint.

@Mr-Wiredancer
Copy link

I traced all issues about CLI export option to this one. Is there any followup or any final decision on whether it will be implemented?

@azataiot
Copy link

Use command line to let Typora:

If the Typora CLI comes up, that could be a really nice feature to use, thanks a lot !!!!!

@maxwellainatchi
Copy link

@abnerlee is there any followup on this? I want to be able to use Typora's HTML generation to publish web docs, but without a way to build from the command line, it's essentially useless.

@v01pe
Copy link

v01pe commented Sep 2, 2020

As Typora seems to support document conversion through Pandoc, as a workaround for conversion, you can use Pandoc directly: https://pandoc.org/MANUAL.html
For me it was already installed and is accessible through the Terminal (on macOS), I guess because it's installed via Typora? If that's not the case, you can install it separately.

@jochenw
Copy link

jochenw commented Jul 14, 2021

Would be nice to have an update on the status, please?

@PegasisForever
Copy link

PegasisForever commented Jul 14, 2021

I'm currently working on creating an unofficial exporter for typora, it aims to have the exact same output as typora, with some more options for advanced usage. It is written in nodejs (so I can use the same libraries as typora). However it is still in early stages, I'll put it on Github and share it here when I finish basic functions.

I suspect it'll take me 1-2 months from now to release the first version (though it's nothing compared to this 3-years-old issue), be patient!:)

@v01pe
Copy link

v01pe commented Jul 14, 2021

Would be nice to have an update on the status, please?

Depends on for what you're here (this issue seems to be very multi-purpose). I recently discovered, there the are new export feature, one being a custom export option, where you can supply your own export scripts, etc. Also existing ones can be customized there – see the custom export feature documentation. This fulfils my needs, others might have different requirements.

@PegasisForever
Copy link

Hi, just a status update on my typora cli. I know I'm behind the schedule :) I've finished all the architectural and algorithm heavy lifting stuff, the rest is pretty trival. Expect to see the first version in 2 weeks!

@PegasisForever
Copy link

PegasisForever/typora-parser Thanks for yall's patience, let's gooo!

@YalandHong
Copy link

I'm very disappointed that there's been little to no official follow up on this issue for almost two (edit: three) years. As I've mentioned, this is not just an annoyance or a nice feature request: not having these features exposed in a practical way (and the absence of CLI options for conversion and processing) makes Typora markdown files nonstandard and non-portable, which really defeats the purpose.

I'm disappointed and frustrated, and I'm going to have to look into converting all my markdown documents into a standard, useful form. With no support or even a commitment of support, I can no longer even recommend Typora.

I couldn't agree more. Currently Typora is not completely compatible with GitHub Flavored Markdown (#1789), making it a world of pain to publish a document written in Typora to my blog.

@scruel
Copy link

scruel commented Sep 14, 2022

Hope you can support "export file via command line" feature soon!

@GiovanH
Copy link

GiovanH commented Sep 26, 2022

They're not going to. They've decided to make this hostile software. Stop using it.

@WayneYam
Copy link

WayneYam commented Feb 2, 2023

Does anyone know how to export markdown to PDF in command line that looks exactly like Typora's? I really love its style

@ian-l-kennedy
Copy link

@abnerlee when will you add command line support for md to pdf on Linux?

@mattiasJohnson
Copy link

@WayneYam Not a complete answer but if you use PegasisForever/typora-parser from above in this thread you get html that is formatted exactly the same and then for going html->pdf you could probably use pandoc

@yingbo
Copy link

yingbo commented Jan 23, 2024

It will be great to have this feature. Currently I'm writing md using Typora, export to PDF to share the document. Would like to make the pdf generation as a part of CI/CD to automatically update the PDF file. I tried the PegasisForever/typora-parser above, which has some differences as the vanilla Typora, especially the mathjs part, e.g. formula number, references, and etc. I feel it's great to be able to use the Typora cli directly. Thanks!

@cyrilDamae
Copy link

Generating pdf with typora from command line would be amazing for our CI too.
Can't wait to see this feature coming !

@YDX-2147483647
Copy link

as a part of CI/CD

In my humble opinion, using Typora in CI/CD is a separate and more complicated issue. How to pass the license code to activate? What about the 3-device limit? Can other people trigger the CI (e.g. in PR)? Maybe self-hosted runners are required.

@cyrilDamae
Copy link

We precisely have self-hosted runners, our documentary environment is heavy because of CE and FDA appliances and the simple operation of exporting each document in pdf is painful. it would be so nice to have a CI exporting it on each release or on each merge request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests