Giter VIP home page Giter VIP logo

Comments (7)

jgm avatar jgm commented on May 21, 2024

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.

jgm avatar jgm commented on May 21, 2024

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.

jgm avatar jgm commented on May 21, 2024

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.

jgm avatar jgm commented on May 21, 2024

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.

jgm avatar jgm commented on May 21, 2024

Google Code Info:
Author: [email protected]
Created On: 2008-11-02T17:03:45.000Z

from pandoc.

jgm avatar jgm commented on May 21, 2024

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.

jgm avatar jgm commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.