public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Debugging usage of pandoc-sf-sc.py
@ 2017-09-21 19:16 R (Chandra) Chandrasekhar
  0 siblings, 0 replies; only message in thread
From: R (Chandra) Chandrasekhar @ 2017-09-21 19:16 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I am trying out pandoc-sf-sc.py available at

https://gist.github.com/bpj/dc09a4943bc51ca64327c65623a121e9

to produce sans serif output in both PDF from XeLaTeX and in HTML5 from 
the same two-line source file:

[this is sans text](-sf)
[this is small-caps text](-sc)

called sans-test.md

The PDF from XeLaTeX seems fine but the HTML output is not as expected:

---
<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
   <meta name="generator" content="pandoc">
   <meta name="viewport" content="width=device-width, initial-scale=1.0, 
user-scalable=yes">
   <title></title>
   <style type="text/css">code{white-space: pre;}</style>
   <!--[if lt IE 9]>
     <script 
src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
   <![endif]-->
</head>
<body>
<p><a href="-sf">this is sans text</a> <a href="-sc">this is small-caps 
text</a></p>
</body>
</html>
---

The command being used is:

andoc --standalone --filter "$HOME/.pandoc/pandoc-sf-sc.py" --to html5 
sans-test.md --output sans-test.html

Can someone please point out what I am doing wrong?

Am I invoking the filter in the correct sequence of options?

Thanks.

Chandra


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-21 19:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-21 19:16 Debugging usage of pandoc-sf-sc.py R (Chandra) Chandrasekhar

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).