Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken text/latex output for markdown horizontal rule #29995

Closed
stevengj opened this issue Nov 10, 2018 · 0 comments
Closed

broken text/latex output for markdown horizontal rule #29995

stevengj opened this issue Nov 10, 2018 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior docsystem The documentation building system

Comments

@stevengj
Copy link
Member

Markdown.MD objects claim to support text/latex output, but there is a MethodError for HorizontalRule elements (from JuliaLang/IJulia.jl#776):

julia> using Markdown

julia> m = Markdown.parse("---")
  ────────────────────────────────────────────────────────────────────────────

julia> showable("text/latex", m)
true

julia> show(stdout, "text/latex", m)
ERROR: MethodError: no method matching latex(::Base.TTY, ::Markdown.HorizontalRule)
Closest candidates are:
  latex(::IO, ::Markdown.Table) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/GitHub/table.jl:154
  latex(::IO, ::Markdown.LaTeX) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/IPython/IPython.jl:28
  latex(::IO, ::Markdown.MD) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/latex.jl:19
  ...
Stacktrace:
 [1] latex(::Base.TTY, ::Array{Any,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/latex.jl:23
 [2] latex at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/latex.jl:19 [inlined]
 [3] show(::Base.TTY, ::MIME{Symbol("text/latex")}, ::Markdown.MD) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/latex.jl:172
 [4] show(::Base.TTY, ::String, ::Markdown.MD) at ./multimedia.jl:79
 [5] top-level scope at none:0
@stevengj stevengj added bug Indicates an unexpected problem or unintended behavior docsystem The documentation building system labels Nov 10, 2018
KristofferC pushed a commit that referenced this issue Nov 19, 2018
@KristofferC KristofferC mentioned this issue Nov 19, 2018
61 tasks
KristofferC pushed a commit that referenced this issue Dec 12, 2018
KristofferC pushed a commit that referenced this issue Feb 11, 2019
KristofferC pushed a commit that referenced this issue Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior docsystem The documentation building system
Projects
None yet
Development

No branches or pull requests

1 participant