flexmark-java
pandoc
flexmark-java | pandoc | |
---|---|---|
3 | 420 | |
2,197 | 32,693 | |
- | - | |
4.5 | 9.8 | |
3 months ago | 8 days ago | |
Java | Haskell | |
BSD 2-clause "Simplified" License | GNU General Public License v2.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flexmark-java
-
Show HN: Generate pdf with gitbook or mdbook url
I developed KeenWrite[0] with similar ideas to mdbook: typeset into PDF from Markdown. Technically, this happens in three stages. First, the Markdown is converted to XHTML. Second, the XHTML is converted to TeX commands. Third, the ConTeXt typesetting system produces a PDF file. Both the GUI and CLI can export to PDF.[1]
Like mdbook, the themes are isolated. Instead of CSS, KeenWrite themes are written in ConTeXt. There are several example starter themes.[2] A "thesis" theme would be a nice addition, but there's a problem.
Markdown lacks a standard for cross-references and citations. An open KeenWrite issue animates a possible UX solution.[3] The topic of references/citations has been discussed on CommonMark[4] without much movement. Parsing cross-references and citations would benefit flexmark-java[5] integrations. KeenWrite uses flexmark-java, but I'm otherwise unaffiliated. If anyone is interested in helping, reach out (see profile).
[0]: https://keenwrite.com/
[1]: https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/docs/cmd...
[2]: https://gitlab.com/DaveJarvis/keenwrite-themes/
[3]: https://gitlab.com/DaveJarvis/KeenWrite/-/issues/145
[4]: https://talk.commonmark.org/t/cross-references-and-citations...
[5]: https://github.com/vsch/flexmark-java
-
A new connection manager and remote file explorer created with Java(FX) - X-Pipe Status Update
Nowadays, most application documentation is moved onto a website, which forces users to switch to a web browser every time they want to read some basic documentation. Furthermore, docs on the web can become quite convoluted, resulting in additional times spent just looking for the right section. But as it turns out, using the JavaFX WebView, Flexmark, AtlantaFX Popovers, and for example GitHub Markdown CSS, you can achieve a fancy markdown display within your application at exactly the place you want:
-
KeenWrite: Edit with Variables
KeenWrite is my free and open-source cross-platform desktop text editor that allows users to write pose using variables defined in a separate file. A few highlights:
* Uses flexmark-java[1] to render Markdown as HTML.
* Extends flexmark-java to support Pandoc’s ::: fenced div syntax.
* Supports plain text diagrams via Kroki[2].
* Computes statistics (word count, word frequencies).
* Performs real-time spell checking.
* Integrates the R programming language.
* Includes a subset of TeX for math.
* Exports to XHTML with TeX as either SVG or inline markup.
* Exports to PDF using the ConTeXt[3] typesetting software and a variety of starter themes.
* Converts straight quotes to curly quotes using KeenQuotes, automagically.
See the screenshots[4] for details.
[1]: https://github.com/vsch/flexmark-java/
[2]: https://kroki.io/
[3]: https://www.contextgarden.net/
[4]: https://github.com/DaveJarvis/keenwrite/blob/master/docs/scr...
pandoc
-
Beautifying Org Mode in Emacs (2018)
My main authoring tool is then Emacs Markdown Mode (https://jblevins.org/projects/markdown-mode/). For data entry, it comes with some bells and whistles similar to org-mode, like C-c C-l for inserting links etc.
I seldom export my notes for external usage, but if it is the case, I use lowdown (https://kristaps.bsd.lv/lowdown/) which also comes with some nice output targets (among the more unusual are Groff and Terminal). Of cource pandoc (https://pandoc.org/) does a very good job here, too.
-
Show HN: I made a tool to clean and convert any webpage to Markdown
This is one of those things that the ever-amazing pandoc (https://pandoc.org/) does very well, on top of supporting virtually every other document format.
-
LaTeX makes me so angry at word
Folks feel the same way about Markdown versus LaTeX: why use something significantly more complicated where a looser, human-readable grammar works better?
For any other situations, I use https://pandoc.org/, or, generate a Word doc scriptomatically.
-
📓 Versionner et builder l'eBook de son Entretien Annuel d'Evaluation sur Git(Hub)
pandoc toolchain pour builder une version confortable/imprimable en phase de travail (ePub, pdf, docx, html)
-
Launch HN: Onedoc (YC W24) – A better way to create PDFs
Congrats on the launch, I guess, but there are so many free options that I can't think of a situation where paying $0.25 per document would be justified...? Just to name a few:
Back in the days, I used to use XSL-FO [0] and it was okay. It was not very precise but it rarely if ever broke, and was perfectly integrated with an XML/XSLT solution. Yeah, this was a long time ago.
Last month I used html-to-pdfmake [1] and it's also not very precise and more fragile, but very efficient and fast.
Yet another approach would be to pro grammatically generate .rtf files (for example) and use Pandoc [2] to produce PDFs (I have not tried this in production but don't see why it wouldn't work).
[0] https://en.wikipedia.org/wiki/XSL_Formatting_Objects
[1] https://www.npmjs.com/package/html-to-pdfmake
[2] https://pandoc.org/
-
Ask HN: Looking for lightweight personal blogging platform
Others have mentioned static site generators. I like Hakyll [1] because it can tightly integrate with Pandoc [2] and allows you to develop custom solutions if your needs ever grow.
[1]: https://jaspervdj.be/hakyll/
[2]: https://pandoc.org/
-
Show HN: CLI for generating beautiful PDF for offline reading
Have you compared it with a conversion by pandoc (https://pandoc.org/)?
-
Pandoc
I have used it to kickstart a blogging project that I wish to come back to soon. The Lua inter-op for custom readers, writers and filters is great but I wish there was more editor integration and even perhaps an official IDE/editor with built-in debugging features (probably something already do-able with Emacs but I haven't checked). The only blocker for my project is no support for "ChunkedDoc" for Lua filters [1] which forces me to write more code and a complicated Makefile.
[1]: https://github.com/jgm/pandoc/issues/9061
- I don't always use LaTeX, but when I do, I compile to HTML (2013)
- What Happened to Pandoc-Discuss?
What are some alternatives?
commonmark-java - Java library for parsing and rendering CommonMark (Markdown)
pandoc-highlighting-extensions - Extensions to Pandoc syntax highlighting
Cebe Markdown - A super fast, highly extensible markdown parser for PHP
obsidian-html - :file_cabinet: A simple tool to convert an Obsidian vault into a static directory of HTML files.
Markwon - Android markdown library (no WebView)
obsidian-export - Rust library and CLI to export an Obsidian vault to regular Markdown
Markdown-CLI - A markdown CLI parser made in C++
Obsidian-MD-To-PDF - A command line python script to convert Obsidian md files to a pdf
mdconv - A CLI markdown converter written in Go, that does not depend on LaTeX.
kramdown - kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
sanemark-crystal - An implementation of Sanemark, a simpler Markdown spec.
wavedrom - :ocean: Digital timing diagram rendering engine