Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Line can't begin with @. #70

Closed
Peeja opened this issue Nov 14, 2012 · 4 comments
Closed

Line can't begin with @. #70

Peeja opened this issue Nov 14, 2012 · 4 comments
Milestone

Comments

@Peeja
Copy link

Peeja commented Nov 14, 2012

Apparently there's a defunct metadata syntax which used @:

$ echo "@ foo" | maruku
 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Please use the new meta-data syntax: 
|   http://maruku.rubyforge.org/proposal.html
| 
| At line 1
|   metadata --> |@ foo|
+---------------------------------------------------------------------------
!/usr/local/Cellar/rbenv/0.3.0/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/maruku-0.6.1/lib/maruku/errors_management.rb:49:in `maruku_error'
!/usr/local/Cellar/rbenv/0.3.0/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/maruku-0.6.1/lib/maruku/input/parse_block.rb:101:in `parse_blocks'
!/usr/local/Cellar/rbenv/0.3.0/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/maruku-0.6.1/lib/maruku/input/parse_block.rb:41:in `parse_text_as_markdown'
!/usr/local/Cellar/rbenv/0.3.0/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/maruku-0.6.1/lib/maruku/input/parse_doc.rb:55:in `parse_doc'
!/usr/local/Cellar/rbenv/0.3.0/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/maruku-0.6.1/lib/maruku/maruku.rb:30:in `initialize'
\___________________________________________________________________________

But it can't be escaped:

$ echo "\@ foo" | maruku
<p>\@ foo</p>

My current workaround is to add a zero width non-joiner in front of the @, just so it's not the first thing on the line:

$ echo "&zwnj;@ foo"
<p>&zwnj;@ foo</p>
@bhollis
Copy link
Owner

bhollis commented Nov 17, 2012

Yeah, that syntax should really be removed.

bhollis added a commit that referenced this issue Feb 16, 2013
@bhollis
Copy link
Owner

bhollis commented Feb 16, 2013

OK, I have a test for this, but I also have a workaround. Put a space at the beginning of the line, and you'll get @ foo.

@distler
Copy link
Collaborator

distler commented May 23, 2013

For whatever it's worth, this was fixed here.

@distler
Copy link
Collaborator

distler commented May 27, 2013

Fix is now on trunk.

@distler distler closed this as completed May 27, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants