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

Tables #16

Open
dpo opened this issue Jan 1, 2015 · 4 comments
Open

Tables #16

dpo opened this issue Jan 1, 2015 · 4 comments

Comments

@dpo
Copy link
Contributor

dpo commented Jan 1, 2015

> cat simple.md
column1 | column2
--------|--------
item1   | thing1
item2   | thing2
item3   | thing3
> julia
julia> using Markdown
julia> Markdown.parse_file("simple.md")

  column1 | column2 ––––|–––– item1   | thing1 item2   | thing2 item3   | thing3

I came across this behavior while using Docile.jl and Lexicon.jl, which use Markdown.jl. In the HTML output of my documentation, tables come out all garbled.

@dpo
Copy link
Contributor Author

dpo commented Jan 1, 2015

Just tested this with master and the problem is still there. Also README.md should say Markdown.parse_file instead of Markdown.parse.

@MikeInnes
Copy link
Contributor

Tables aren't part of the commonmark spec, but they could certainly be added to the GitHub flavour. If you need tables immediately I suggest adding a four-space indent to preserve the raw text.

A PR for the readme (or indeed tables, if you have time) is very welcome.

@dpo
Copy link
Contributor Author

dpo commented Jan 2, 2015

See #19 for the fix to README.md.

@hayd
Copy link

hayd commented Mar 12, 2015

This is fixed in 0.4 master, and will be in next release of Markdown.jl:

julia> md"""column1 | column2
       --------|--------
       item1   | thing1
       item2   | thing2
       item3   | thing3"""
column1 column2
––––––– –––––––
  item1  thing1
  item2  thing2
  item3  thing3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants