Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Good Intentions: Wikisyntax for the Monastery (ToDo)

by LanX (Saint)
on Jan 28, 2016 at 14:55 UTC ( [id://1153876]=note: print w/replies, xml ) Need Help??


in reply to Good Intentions: Wikisyntax for the Monastery

Todos in the pipline / wishlist

General
  • cleaner code to avoid namespace pollution
  • create Perl version which is auto-translated to JS-version
  • auto create documentation of syntax
  • test suite also checking browsers
  • move to git-hub
  • allow individual customizing of allowed features and used markup
  • allow caching of imported JS to spare band width
  • general JS-Extension framework to encourage more contributions, see also older discussion
More Features
  • DONE auto link URLs starting with http://
  • DONE parse for internal url's and create [id://...] links (thus avoiding logouts)
  • map doc-links of operators to correct perldoc, like ?and? to [doc://perlop|and]
  • support for abbreviation list, i.e. auto linking autolinking SOPW or CPAN with mouseover (' title' -attribute) description
  • better support for quotes from commented post
  • onchange preview with JS of resulting post
  • looks-like-code() heuristic to warn about perlcode outside code-blocks
  • move [ ]wiki? checkbox under textarea, show only if any submit button available
  • include timestamp after updates
  • DONE support for deeplinks in perldocs (jump to right chapter)
  • better support for cut&paste from perldoc (web or console)

... to be continued...

Requested
  • Wiki support for CB
  • look behind assertion in around_words
  • treat punctuation like whitespace

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: Good Intentions: Wikisyntax for the Monastery (ToDo)
by GotToBTru (Prior) on Jan 28, 2016 at 15:21 UTC
    *The* first word in the post can't have the bold/italic/underline formatting. Unless there's a space or empty line before it. If it's an empty line, that line disappears after previewing, and then the formatting stops working. A single space will remain.

    I don't mean to whine; I like this immensely.

    But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

      Yeah I know I got used to adding a space before the first line and after the last.

      I already mentioned that problem, but ...

      ... I did'nt want to expand the regexes to other whitespaces for that ATM because that's a PITA to test in different browsers.

      It might become configurable in the future, but without guaranty whatsoever.

      Anyway the "bold/italic/underline formatting" isn't that important for me, being able to avoid <p> while typing in my mobile is already worth it. ;-)

      Naming this PM extension a "wiki" might be a misnomer/marketing error though... ;-)

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

      > If it's an empty line, that line disappears after previewing,

      this certainly looks like a bug, THANK YOU! :)

      UPDATE

      So it's not my wiki code causing it.

      I tested as anomonk and the content of the textarea is trimmed from surrounding newlines.

      maybe it's the monasteries codebase ... maybe a firefox thing.

      for the time being, please use an extra whitespace.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

      First word works now, also does the last
Re^2: Good Intentions: Wikisyntax for the Monastery (ToDo)
by moritz (Cardinal) on Jan 29, 2016 at 08:40 UTC
      Actually I've always had in mind that a server side Perl version might be needed and put effort into realizing the logic as a cascade of RegExes.

      RegExes in JS are 98% based on the Perl4 standard. ( exceptions are things like [^] )

      So it shouldn't be too difficult and fun too.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

Re^2: Good Intentions: Wikisyntax for the Monastery (ToDo)
by GotToBTru (Prior) on Feb 24, 2016 at 19:11 UTC

    What is the intended use of the wiki checkbox in CB?

    But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

      To be able to switch the wiki transformation manually on or off.

      It could be better placed below the textarea, but this was already mentioned in the todo list.

      NB : it's not in the CB but in the Free Nodelet.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-03-28 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found