Comments (7)
By the way, the reason I use --strict is only to prevent the insertion of JavaScript in the HTML output (to obscure
email addresses I assume, it is really not documented anywhere?). Would perhaps be nice with an cmd line option
for disabling this.
Google Code Info:
Author: [email protected]
Created On: 2008-10-22T20:59:22.000Z
from pandoc.
Conversion from html to markdown seems fine here. The problem is in the conversion
from markdown to html with --strict:
% pandoc --strict
This is a line of < text and more > text.
This is a line of text.</p
I'll look into it.
Your request for more command-line control over email obfuscation is a reasonable
one. Could I ask you to file a separate issue for that, so I can keep track of it?
Google Code Info:
Author: [email protected]
Created On: 2008-10-22T21:32:01.000Z
from pandoc.
Thanks for your quick comment.
Ok, but according to http://daringfireball.net/projects/markdown/syntax (see bottom of page) - it seems that <
does not need escaping to < in markdown.
Google Code Info:
Author: [email protected]
Created On: 2008-10-22T21:44:16.000Z
from pandoc.
Sure enough. Escaping rules are somewhat different in pandoc than in strict
markdown: see http://johnmacfarlane.net/pandoc/README.html#backslash-escapes
So in --strict mode, pandoc's markdown writer should not backslash-escape '<'.
That's one part of the problem. The other part is that pandoc is parsing '< text and
more >' as an HTML tag (that's why the spaces disappear).
Google Code Info:
Author: [email protected]
Created On: 2008-10-22T23:01:10.000Z
from pandoc.
Google Code Info:
Author: [email protected]
Created On: 2008-11-02T17:03:45.000Z
from pandoc.
The escaping issue solved in r1600.
The whitespace issue is one I can't figure out how to address without making pandoc's
acceptance of html-ish tags less liberal. (Currently it is not restricted to
official html tags, and it allows attributes without values, so your example looks
like a tag to it.) So I'm going to leave this as it is for now.
Google Code Info:
Author: [email protected]
Created On: 2009-07-18T19:16:59.000Z
from pandoc.
Understood - and thanks a lot for your continued work on improving pandoc, and for paying attention to the
details.
Google Code Info:
Author: [email protected]
Created On: 2009-07-20T19:02:30.000Z
from pandoc.
Related Issues (20)
- Markdown to PDF: natbib citations are rendered as [?] HOT 4
- Add the 'alert' extension to Pandoc standard markdown HOT 3
- Support for Manual Bibliography Sorting HOT 4
- Support Zotero citations in docx writer HOT 6
- pandoc does not pick up the figure which pandoc-crossref specifies using "<figure" HOT 22
- export from google docs: lots of empty html comment inside clode blocks HOT 3
- Support `abstract-title` for Typst format HOT 3
- Docx -> HTML: Pandoc discards comments on tables, table rows and table cells
- Access violation in generated code when reading 0xffffffffffffffff HOT 1
- Doesn't generate link ID if convert to markdown_strict when using link-citations. HOT 1
- Section Cross Reference ID is removed when converting from Quarto markdown to markdown_strict HOT 1
- Several bug with pandoc-xnos HOT 1
- Document `handout` variable
- Unwanted rowspan in grid table HOT 1
- Document additional formats affected by `--slide-level`
- YAML parse exception...: did not find expected <document start> HOT 3
- Syntax Highlighting not working in HTML (CSS not being picked up) HOT 14
- pandoc-lua-engine-0.2.1.5 failed to build in stackage nightly HOT 1
- Converting mixed urdu and english text RTF to HTML causes messed up characters HOT 7
- pandoc-server-0.1.0.5 does not compile on Linux x86_64 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc.