PublicLab.Editor icon indicating copy to clipboard operation
PublicLab.Editor copied to clipboard

get Woofmark tokenizer to run all the time, instead of only on demarkdowning

Open jywarren opened this issue 9 years ago • 9 comments

jywarren avatar May 17 '16 18:05 jywarren

@jywarren Do you want to incorporate this in markdown as well? Is that what you're saying here?

tokenizers: [
          {
            token: /(^|\s)@([A-z\_]+)\b/g, // @callouts
            transform: function (all, separator, id) {
              return separator + '<a href="/profile/' + id + '">@' + id + '</a>';
            }
          },
          {
            token: /(^|\s)#([A-z\-]+)\b/g, // #hashtags
            transform: function (all, separator, id) {
              return separator + '<a href="/tag/' + id + '">#' + id + '</a>';
            }
          },
          {
            token: /\[([\S\:\/]+)\]/, // [power:tags]
            transform: function (all, keywords) {
              return '<div class="powertags">Power tag: ' + keywords + '</div>';
            }
          }
        ]

rexagod avatar Feb 01 '19 02:02 rexagod

I think originally this was because as you typed @warren for example, it would only convert it into a link if you changed the mode, and it ran its filters. This still seems to be the case! Could we linkify automatically perhaps after the atwho runs?

jywarren avatar Feb 01 '19 18:02 jywarren

I think originally this was because as you typed @warren for example, it would only convert it into a link if you changed the mode, and it ran its filters. This still seems to be the case! Could we linkify automatically perhaps after the atwho runs?

@jywarren @sagarpreet-chadha for this, i just figured out we don't currently have the Atwho.js Data Module? There's a documentation about how to include it here in the readme. i can work on this, if we need to.

Thanks!!!

Shulammite-Aso avatar Jul 29 '20 12:07 Shulammite-Aso

I think this feature was removed, @jywarren were you discussing about this feature in the Staff meeting? I also do not have the full context here.

sagarpreet-chadha avatar Jul 29 '20 19:07 sagarpreet-chadha

Oh my gosh, getting Atwho.js working here would be AMAZING. If it's not too much of a detour in your work, we'd really appreciate it!

jywarren avatar Jul 29 '20 20:07 jywarren

Oh my gosh, getting Atwho.js working here would be AMAZING. If it's not too much of a detour in your work, we'd really appreciate it!

I think i should do this then.

Shulammite-Aso avatar Jul 29 '20 22:07 Shulammite-Aso

@jywarren @sagarpreet-chadha this will have to be done at plots2. The editor example has this setup in the data directory already, and is working there.

Will open an issue for this at plots2 then work on it.

Shulammite-Aso avatar Jul 31 '20 19:07 Shulammite-Aso

Or maybe transfer this one?

Shulammite-Aso avatar Jul 31 '20 22:07 Shulammite-Aso

Yes let's make a new issue there and linking this issue. Thanks 😄

sagarpreet-chadha avatar Aug 02 '20 09:08 sagarpreet-chadha