Skip to content

Less than character in heading of a input Markdown file with some html mixed in not detecting end of heading #2469

Closed
samogami opened this Issue · 6 comments

2 participants

@samogami

Less than (<) character in heading of a input Markdown file with some html mixed in html not dectecting end of heading correctly.

Example input (in markdown):

# Door width for wheelchair access should be greater than 32 inches  (<813mm)

It is known that most modern wheelchairs are 24 inches to 27 inches wide from one wheel to the other wheel.

<script type="text/javascript" src="utils.js"></script>

Pandoc converts the entire text and appends an h1 at end of document

See pandoc.org/try webpage page for example of problem.

Other markdown converters work correctly as in github (see example below):

Door width for wheelchair access should be greater than 32 inches (<813mm)

It is known that most modern wheelchairs are 24 inches to 27 inches wide from one wheel to the other wheel. To enable wheelchairs to move freely through doors, the door width for wheelchair access should be not less than 32 inches / 813mm.

@jgm
Owner
@samogami

I am using:
Windows 7
Pandoc 1.15.1.1

PS C:\Users\ogamisam> pandoc -v
pandoc.exe 1.15.1.1
Compiled with texmath 0.8.4, highlighting-kate 0.6.
Syntax highlighting is supported for the following languages:
    abc, actionscript, ada, agda, apache, asn1, asp, awk, bash, bibtex, boo, c,
    changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css,
    curry, d, diff, djangotemplate, dockerfile, dot, doxygen, doxygenlua, dtd,
    eiffel, email, erlang, fasm, fortran, fsharp, gcc, glsl, gnuassembler, go,
    haskell, haxe, html, idris, ini, isocpp, java, javadoc, javascript, json,
    jsp, julia, kotlin, latex, lex, lilypond, literatecurry, literatehaskell,
    lua, m4, makefile, mandoc, markdown, mathematica, matlab, maxima, mediawiki,
    metafont, mips, modelines, modula2, modula3, monobasic, nasm, noweb,
    objectivec, objectivecpp, ocaml, octave, opencl, pascal, perl, php, pike,
    postscript, prolog, pure, python, r, relaxng, relaxngcompact, rest, rhtml,
    roff, ruby, rust, scala, scheme, sci, sed, sgml, sql, sqlmysql,
    sqlpostgresql, tcl, tcsh, texinfo, verilog, vhdl, xml, xorg, xslt, xul,
    yacc, yaml, zsh
Default user data directory: C:\Users\ogamisam\AppData\Roaming\pandoc
Copyright (C) 2006-2015 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
@jgm
Owner
@jgm jgm added the bug label
@jgm
Owner

More minimal case:

<

a>

With -f markdown_github or -f markdown-markdown_in_html_blocks, this yields

<p><

a></p>
@jgm jgm added a commit that closed this issue
@jgm Fixed over-eager raw HTML inline parsing.
Tightened up the inline HTML parser so it disallows
TagWarnings.

This only affects the markdown reader when the `markdown_in_html_blocks`
option is disabled.

Closes #2469.
a7150bb
@jgm jgm closed this in a7150bb
@samogami

When will the next build of the windows installer be created with this fix?

@jgm
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.