Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fiddlosopher
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
fiddlosopher
11d ago
I grew up in Los Alamos and remember shopping at that location when it was a Piggly Wiggly grocery store. There is much more detail here about its subsequent incarnation as the Black Hole and the activism of the man who owned it: https:&#
2.
▲
Twenty Years of Pandoc
(pandoc.org)
421 points
by
fiddlosopher
2mo ago
|
53 comments
3.
▲
by
fiddlosopher
7mo ago
The web app can be found at https://pandoc.org/app . This has almost the full power of the command-line app, subject to the limitations imposed by the WASM sandbox. Thus: - the app cannot fetch resources using HTTP - JSON
4.
▲
by
fiddlosopher
8mo ago
Pandoc does know how to expand LaTeX macros. For example, given the LaTeX \newcommand{\pair}[2]{\langle #1, #2\rangle} $$\pair{a^2}{\frac{\pi}{2}}$$ pandoc will give you the Typst $ chevron.l a^2 \, pi / 2 chevron.r $ w
5.
▲
by
fiddlosopher
1y ago
Pandoc developer here. Two comments: (1) to convert equations pandoc uses the texmath library, which I also wrote ( https://github.com/jgm/texmath ). Compiling texmath with `-fexecutable` will give you a standalone exe
6.
▲
by
fiddlosopher
2y ago
An even older one is my gitit, started in 2008! https://hackage.haskell.org/package/gitit-0.15.1.2 It doesn't limit itself to markdown, nor to git (you can use darcs, hg, or even sqlite). A bit long in the tooth,
7.
▲
by
fiddlosopher
3y ago
This was my first computer, too. I have fond memories of programming it in 6502 machine language and saving programs on cassette tape. I still have it, along with the power supply my grandfather built from the specs they provided in the us
8.
▲
by
fiddlosopher
3y ago
As I explained, if you don't want raw HTML, use the second form: pandoc -f html -t gfm-raw_html https://www.fsf.org | grep div gives no output. (If you get different results, it is possible that you are using an earli
9.
▲
by
fiddlosopher
3y ago
If you don't want pandoc's fenced divs, just choose a markdown dialect that doesn't support them: e.g., pandoc -f html -t gfm https://www.fsf.org Or, to get rid of the divs and spans altogether, disable raw
10.
▲
by
fiddlosopher
4y ago
In fact, both claims are misleading. There are two implementations, and they implement distinct flavors with syntactic differences: https://consolelog.gitee.io/docs-asciidoctor/asciidoc-asciid... Markdown has a smaller
11.
▲
by
fiddlosopher
4y ago
Oh, but there is! pandoc --shift-heading-level-by=-1 input.md -o output.docx This will promote level-2 headings to level-1, and promote a level-1 heading at the top of the document to the document's title.
12.
▲
by
fiddlosopher
4y ago
The motivation for this choice is not "convenient parsing" but deeper considerations of language design. As explained at https://github.com/jgm/djot#rationale , this choice follows from two desiderata: (1) &
13.
▲
by
fiddlosopher
4y ago
> Markup language which completely falls over this is Markdown. There’s no way to express generic tree structure, conversion to HTML with specific browser tags is hard-coded. This isn't really a fair criticism. True, the original Ma
14.
▲
by
fiddlosopher
4y ago
Note also that TeX math can contain \text{..} which can itself contain $-delimited TeX math, e.g. $x = \text{my $y$}$. This currently breaks the GitHub implementation.
15.
▲
by
fiddlosopher
5y ago
In pandoc's extended Markdown you can just write # Usage See [Usage]. https://pandoc.org/MANUAL.html#extension-implicit_header_ref...
16.
▲
by
fiddlosopher
6y ago
In fact, pandoc now does have an ipynb reader and writer. You can convert between ipynb and any of the formats pandoc supports, and you can manipulate the AST using filters.
17.
▲
Beyond Markdown
(johnmacfarlane.net)
2 points
by
fiddlosopher
6y ago
|
0 comments
18.
▲
Beyond Markdown
(talk.commonmark.org)
4 points
by
fiddlosopher
8y ago
|
0 comments
19.
▲
by
fiddlosopher
12y ago
See https://github.com/jgm/pandoc/issues/1456 .
20.
▲
by
fiddlosopher
12y ago
AsciiDoc is a nice project, but I think that pandoc's variant of Markdown has a lot of advantages over AsciiDoc for academic writing. Let's just compare support for math and citations, for example. Pandoc's citation support
21.
▲
by
fiddlosopher
12y ago
"For example, they do not plan to add syntax highlighting blocks (the ```some code``` on GitHub) to their implementation, because they believe that it is outside the scope of markdown." To correct the record, fenced code blocks ha
22.
▲
by
fiddlosopher
12y ago
Although I'm involved in both these enterprises, let's not confuse their goals. CommonMark is currently focused on the task of giving a decent spec for the core syntax and robust, efficient implementations; extensions will wait ti
23.
▲
by
fiddlosopher
12y ago
Your comments (coming from someone who has actually tackled this surprisingly difficult task) are some of the most valuable we've received; having them on the Discourse forum would be great. We considered writing the spec in the state
24.
▲
by
fiddlosopher
12y ago
If you think there are ambiguities, please comment at http://talk.standardmarkdown.com . This is meant to be a provisional spec, up for comment. There is undoubtedly room for improvement. The C and javascript implementations use
25.
▲
by
fiddlosopher
12y ago
For a while I was working on a Haskell-based macro system that compiles TeX-like source to HTML and LaTeX (and whatever else you like) ( https://github.com/jgm/HeX ). You'd write your macro definitions in a Haskell
26.
▲
by
fiddlosopher
12y ago
All the vowels in Navajo can have a hook under them (indicated nasal tone) and an acute accent above them (indicating higher pitch). The "ł" is not pronounced as in Polish. It is a voiceless alveolar lateral fricative. Try to p
27.
▲
by
fiddlosopher
13y ago
Pandoc doesn't have an "include" feature, but it's easy enough to add this with a preprocessor. See http://randomdeterminism.wordpress.com/2012/06/01/how-i-stop... . Pandoc does provide a
28.
▲
by
fiddlosopher
13y ago
The recently-released pandoc 1.12 ( http://johnmacfarlane.net/pandoc ) supports reveal.js as an output format. I've been using it for some time to give talks, and it works well. The 2-D navigation structure makes it ea
29.
▲
by
fiddlosopher
14y ago
pandoc mybook.md -o mybook.epub
30.
▲
by
fiddlosopher
14y ago
This works too: pandoc -t markdown http://example.com
More ›