public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Markdown Filter
@ 2015-02-27 19:53 Syberia
       [not found] ` <fe173f1f-6f4b-40fc-92eb-50cf3ff0fc90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Syberia @ 2015-02-27 19:53 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 628 bytes --]

Hallo!
Is it possible to write a filter in javascript?


-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fe173f1f-6f4b-40fc-92eb-50cf3ff0fc90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1079 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Markdown Filter
       [not found] ` <fe173f1f-6f4b-40fc-92eb-50cf3ff0fc90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-02-27 21:34   ` BP Jonsson
  2015-02-27 21:48   ` BP Jonsson
  2015-02-28 22:16   ` Syberia
  2 siblings, 0 replies; 5+ messages in thread
From: BP Jonsson @ 2015-02-27 21:34 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Den 2015-02-27 20:53, Syberia skrev:
> Hallo!
> Is it possible to write a filter in javascript?

You can use any langvuage as long as pandoc can figure out what to run the script with, or you can make the script executable.

Basically you need to be able to run the script from the commandline. I found a stackoverflow question on how to run javascript from the commandline with some apparently useful answers:

<http://stackoverflow.com/q/2941411>

According to one of the answers it is possible to set things up so that you can use a `#!/usr/bin/js` shebang line (and thus probably `#!/usr/bin/env js` as well! :-)

I hope this helps!  Note that I haven't tried any of it myself. It was just the top hit when I googled "command line javascript interpreter". Some of the other first page hits look promising as well, assuming that you get the same hits as I did.

<https://www.google.com/search?hl=en&q=command+line+javascript+interpreter>

/bpj


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Markdown Filter
       [not found] ` <fe173f1f-6f4b-40fc-92eb-50cf3ff0fc90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2015-02-27 21:34   ` BP Jonsson
@ 2015-02-27 21:48   ` BP Jonsson
  2015-02-28 22:16   ` Syberia
  2 siblings, 0 replies; 5+ messages in thread
From: BP Jonsson @ 2015-02-27 21:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Den 2015-02-27 20:53, Syberia skrev:
> Hallo!
> Is it possible to write a filter in javascript?
>
>

Followup:

<http://manpages.ubuntu.com/manpages/utopic/man1/jsc.1.html>

<https://www.google.com/search?hl=en&q=jsc+javascript>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Markdown Filter
       [not found] ` <fe173f1f-6f4b-40fc-92eb-50cf3ff0fc90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2015-02-27 21:34   ` BP Jonsson
  2015-02-27 21:48   ` BP Jonsson
@ 2015-02-28 22:16   ` Syberia
       [not found]     ` <dd480bd9-49e5-4665-8246-e04c1378764b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2 siblings, 1 reply; 5+ messages in thread
From: Syberia @ 2015-02-28 22:16 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 601 bytes --]

Thank you for help!!!



>
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/dd480bd9-49e5-4665-8246-e04c1378764b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Markdown Filter
       [not found]     ` <dd480bd9-49e5-4665-8246-e04c1378764b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-02-28 23:52       ` John MacFarlane
  0 siblings, 0 replies; 5+ messages in thread
From: John MacFarlane @ 2015-02-28 23:52 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Here's a library for writing pandoc filters in JavaScript
with node.js:
https://github.com/mvhenderson/pandoc-filter-node

+++ Syberia [Feb 28 15 14:16 ]:
>   Thank you for help!!!
>
>   --
>   You received this message because you are subscribed to the Google
>   Groups "pandoc-discuss" group.
>   To unsubscribe from this group and stop receiving emails from it, send
>   an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/dd480bd9-49e5-4665-
>   8246-e04c1378764b%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/dd480bd9-49e5-4665-8246-e04c1378764b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-28 23:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27 19:53 Markdown Filter Syberia
     [not found] ` <fe173f1f-6f4b-40fc-92eb-50cf3ff0fc90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-02-27 21:34   ` BP Jonsson
2015-02-27 21:48   ` BP Jonsson
2015-02-28 22:16   ` Syberia
     [not found]     ` <dd480bd9-49e5-4665-8246-e04c1378764b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-02-28 23:52       ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).