Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Markdown syntax useful to the Monestary?

by radiantmatrix (Parson)
on Oct 28, 2005 at 19:04 UTC ( [id://503736]=note: print w/replies, xml ) Need Help??


in reply to Re: Markdown syntax useful to the Monestary?
in thread Markdown syntax useful to the Monastery?

If this were implemented as I envision, then you wouldn't have to use the markdown methodology, you could just use the monastic style. AFAICT, Markdown parsing ignores something that's just in square brackets, so it would leave [radiantmatrix] and [cpan://strict] type links intact, to be processed by the monastic style. Only if it sees a string matching [.+](.+) (or, incidently, [.+][\d+] does it bother to process it.

Again, what I proposed is an implementation that no one would notice if they just used the current monastic style of markup.

After considering a couple of the comments here, I realize that some of the auto-formatting things would have to either be more intelligent or controlled through some sort of preference.

As for intelligence, it would be easy enough to turn specific Markdown items off when it makes sense: two line breaks followed immediately by container-type HTML tags would *not* be parsed as a new Markdown paragraph. If it sees italics, emphasis, bold, strong tags, assume all asterisks are literal. Use literal asterisks if it sees something like "great idea*" without a matching /\*\w/ somewhere before it in the paragraph. Etc. Most of this would be trivial, the rest would be mostly easy (though I'm sure there would be a few difficulties).

As for the option, I'd place a per-post checkbox for 'use Markdown syntax'; checking it would resolve conflicts between monastic markup and Markdown in favor of Markdown. When unchecked, all Markdown would be ignored. The default state of this checkbox would be controlled in user preferences.

I also don't like excessive autoformatting of text. I do like making some interpolation available so that I can concentrate on my content, and not whether or not I've remembered to break my paragraphs or wrap quotations of other people in blockquote tags (Markdown lets you prepend the paragraph with a single '> ' to deal with it.

I also feel bad for new posters that don't understand why all of their paragraph breaks (in the form of a double newline) disappear when they post, and they get chastised for it. Giving them an option that automatically deals with simple things like that is, I think, valuable.

Does any of that make you more comfortable with the idea?

<-radiant.matrix->
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://503736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-19 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found