[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Edit Wikipedia Article directly in Emacs?
From: |
Yuchen Pei |
Subject: |
Re: Edit Wikipedia Article directly in Emacs? |
Date: |
Fri, 30 Jun 2023 21:02:45 +1000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
On Fri 2023-06-30 15:26:37 +0700, Yuri Khan wrote:
> On Fri, 30 Jun 2023 at 11:57, Jean Louis <bugs@gnu.support> wrote:
>
>> * Philip Kaludercic <philipk@posteo.net> [2023-06-28 17:28]:
>> > I am not sure how good of an idea this is, to my recollection Wikipedia
>> > markup is fairly specific and it is not easy to map between different
>> > markup formats without loosing too much information.
>>
>> Just to mention that command line:
>>
>> pandoc -f org -t mediawiki MYFILE.org
>>
>> is to convert Org to Mediawiki format.
>
> The specifics of Mediawiki is that you can have templates that
> effectively extend the markup language, and this is widely used in
> Wikipedia and its sister wikis. A quick experiment shows that Pandoc
> silently drops most template inclusions.
Ya, pandoc is nice, but from my experience it always requires some
filters to work well. And Haskell is about the furthest thing from a
scripting language, it is not as nice to iterate / experiment as elisp.
With tree-sitter, it would be nice if people could agree on the specs of
an intermediate representation for markup languages, so that we can get
a pandoc in emacs, and with the customisability in emacs would be one
step closer to meet OP's requirement.
Best,
Yuchen
--
PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0
<https://ypei.org/assets/ypei-pubkey.txt>