You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@incubator.apache.org by Juan Pablo Santos Rodríguez <ju...@gmail.com> on 2013/03/05 00:46:11 UTC

Markdown issue

Hi all,

probably is a dumb issue and I'm missing something obvious, but so far, I
haven't been able to solve it:

Is there an easy way to tell a markdown link to use a specific css class?
I'd like to render links pointing outside the incubator site with an
"external" css class. I know I can write the html equivalent, but that
feels unnatural, so I'd better avoid that option. I've been poking at a few
site's sources, but haven't had any luck yet..


thx in advance!

br,
juan pablo

Re: Markdown issue

Posted by Joseph Schaefer <jo...@yahoo.com>.
See http://www.apache.org/dev/cmsref#markdown in particular the elementid plugin.

Sent from my iPhone

On Mar 5, 2013, at 4:54 PM, Juan Pablo Santos Rodríguez <ju...@gmail.com> wrote:

> Hi!
> 
> @Manos: that's great! didn't thought of that, but it absolutely solves the
> problem
> 
> @Joseph: that looks interesting too, could you provide a link to that
> extension?
> 
> thx a lot for the tips & pointers
> 
> 
> cheers,
> juan pablo
> 
> On Tue, Mar 5, 2013 at 7:56 PM, Joseph Schaefer <jo...@yahoo.com>wrote:
> 
>> In the custom extension we use there is code that lets you select a CSS
>> classname by adding {.classname} to the end of the text area.
>> 
>> Sent from my iPhone
>> 
>> On Mar 5, 2013, at 1:48 PM, "Emmanouil Batsis (Manos)" <ma...@abiss.gr>
>> wrote:
>> 
>>> 
>>> IF I understand you correctly you might be able to simply tackle the
>> issue using the right CSS selector to apply styles for external links.
>>> 
>>> If links pointing inside the site use URLs not starting with "http" you
>> might want to do something like the following to match external links:
>>> 
>>> a[href^="http://"] { color: red; }
>>> 
>>> hth,
>>> 
>>> Manos
>>> 
>>> On 03/05/2013 10:18 AM, Juan Pablo Santos Rodríguez wrote:
>>>> Hi,
>>>> 
>>>> @Ioan: that was exactly what I was trying to avoid, it feels a bit
>>>> cumbersome to type the whole link instead something like
>>>> [text][1](.whatevercssclass) or similar
>>>> 
>>>> @Shane: yep, had checked also that link, unfortunately, "Special
>> attribute
>>>> blocks can be used only with headers fenced code blocks." and I was
>> looking
>>>> to arbitrarily style a given link (btw, the preview pane doesn't like
>>>> fenced blocks, or is it just me?)
>>>> 
>>>> seems I'll stick with inline html, I was puzzled to see that it doesn't
>>>> seem to be an easy way to put custom styles via markdown :-?
>>>> 
>>>> anyway, thanks for the insights
>>>> 
>>>> 
>>>> br,
>>>> juan pablo
>>>> 
>>>> 
>>>> On Tue, Mar 5, 2013 at 3:30 AM, Shane Curcuru <as...@shanecurcuru.org>
>> wrote:
>>>> 
>>>>> See if this helps:
>>>>> 
>>>>>  http://michelf.ca/projects/**php-markdown/extra/#spe-attr<
>> http://michelf.ca/projects/php-markdown/extra/#spe-attr>
>>>>> 
>>>>> Which is linked from:
>>>>> 
>>>>>  http://www.apache.org/dev/**cmsref.html#markdown<
>> http://www.apache.org/dev/cmsref.html#markdown>
>>>>> 
>>>>> - Shane
>>>>> 
>>>>> 
>>>>> On 3/4/2013 6:46 PM, Juan Pablo Santos Rodríguez wrote:
>>>>> 
>>>>>> Hi all,
>>>>>> 
>>>>>> probably is a dumb issue and I'm missing something obvious, but so
>> far, I
>>>>>> haven't been able to solve it:
>>>>>> 
>>>>>> Is there an easy way to tell a markdown link to use a specific css
>> class?
>>>>>> I'd like to render links pointing outside the incubator site with an
>>>>>> "external" css class. I know I can write the html equivalent, but that
>>>>>> feels unnatural, so I'd better avoid that option. I've been poking at
>> a
>>>>>> few
>>>>>> site's sources, but haven't had any luck yet..
>>>>>> 
>>>>>> 
>>>>>> thx in advance!
>>>>>> 
>>>>>> br,
>>>>>> juan pablo
>> ------------------------------**------------------------------**---------
>>>>> To unsubscribe, e-mail: general-unsubscribe@incubator.**apache.org<
>> general-unsubscribe@incubator.apache.org>
>>>>> For additional commands, e-mail: general-help@incubator.apache.**org<
>> general-help@incubator.apache.org>
>>> 
>>> 
>>> --
>>> Manos Batsis, Chief Technologist
>>>        __    _
>>> ____ _/ /_  (_)_________ ____ ______
>>> / __ `/ __ \/ / ___/ ___// __ `/ ___/
>>> / /_/ / /_/ / (__  |__  )/ /_/ / /
>>> \__,_/_.___/_/____/____(_)__, /_/
>>>                       /____/
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
>>> For additional commands, e-mail: general-help@incubator.apache.org
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: general-help@incubator.apache.org
>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: Markdown issue

Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi!

@Manos: that's great! didn't thought of that, but it absolutely solves the
problem

@Joseph: that looks interesting too, could you provide a link to that
extension?

thx a lot for the tips & pointers


cheers,
juan pablo

On Tue, Mar 5, 2013 at 7:56 PM, Joseph Schaefer <jo...@yahoo.com>wrote:

> In the custom extension we use there is code that lets you select a CSS
> classname by adding {.classname} to the end of the text area.
>
> Sent from my iPhone
>
> On Mar 5, 2013, at 1:48 PM, "Emmanouil Batsis (Manos)" <ma...@abiss.gr>
> wrote:
>
> >
> > IF I understand you correctly you might be able to simply tackle the
> issue using the right CSS selector to apply styles for external links.
> >
> > If links pointing inside the site use URLs not starting with "http" you
> might want to do something like the following to match external links:
> >
> > a[href^="http://"] { color: red; }
> >
> > hth,
> >
> > Manos
> >
> > On 03/05/2013 10:18 AM, Juan Pablo Santos Rodríguez wrote:
> >> Hi,
> >>
> >> @Ioan: that was exactly what I was trying to avoid, it feels a bit
> >> cumbersome to type the whole link instead something like
> >> [text][1](.whatevercssclass) or similar
> >>
> >> @Shane: yep, had checked also that link, unfortunately, "Special
> attribute
> >> blocks can be used only with headers fenced code blocks." and I was
> looking
> >> to arbitrarily style a given link (btw, the preview pane doesn't like
> >> fenced blocks, or is it just me?)
> >>
> >> seems I'll stick with inline html, I was puzzled to see that it doesn't
> >> seem to be an easy way to put custom styles via markdown :-?
> >>
> >> anyway, thanks for the insights
> >>
> >>
> >> br,
> >> juan pablo
> >>
> >>
> >> On Tue, Mar 5, 2013 at 3:30 AM, Shane Curcuru <as...@shanecurcuru.org>
> wrote:
> >>
> >>> See if this helps:
> >>>
> >>>   http://michelf.ca/projects/**php-markdown/extra/#spe-attr<
> http://michelf.ca/projects/php-markdown/extra/#spe-attr>
> >>>
> >>> Which is linked from:
> >>>
> >>>   http://www.apache.org/dev/**cmsref.html#markdown<
> http://www.apache.org/dev/cmsref.html#markdown>
> >>>
> >>> - Shane
> >>>
> >>>
> >>> On 3/4/2013 6:46 PM, Juan Pablo Santos Rodríguez wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> probably is a dumb issue and I'm missing something obvious, but so
> far, I
> >>>> haven't been able to solve it:
> >>>>
> >>>> Is there an easy way to tell a markdown link to use a specific css
> class?
> >>>> I'd like to render links pointing outside the incubator site with an
> >>>> "external" css class. I know I can write the html equivalent, but that
> >>>> feels unnatural, so I'd better avoid that option. I've been poking at
> a
> >>>> few
> >>>> site's sources, but haven't had any luck yet..
> >>>>
> >>>>
> >>>> thx in advance!
> >>>>
> >>>> br,
> >>>> juan pablo
> >>>
> ------------------------------**------------------------------**---------
> >>> To unsubscribe, e-mail: general-unsubscribe@incubator.**apache.org<
> general-unsubscribe@incubator.apache.org>
> >>> For additional commands, e-mail: general-help@incubator.apache.**org<
> general-help@incubator.apache.org>
> >
> >
> > --
> > Manos Batsis, Chief Technologist
> >         __    _
> >  ____ _/ /_  (_)_________ ____ ______
> > / __ `/ __ \/ / ___/ ___// __ `/ ___/
> > / /_/ / /_/ / (__  |__  )/ /_/ / /
> > \__,_/_.___/_/____/____(_)__, /_/
> >                        /____/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: general-help@incubator.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
> For additional commands, e-mail: general-help@incubator.apache.org
>
>

Re: Markdown issue

Posted by Joseph Schaefer <jo...@yahoo.com>.
In the custom extension we use there is code that lets you select a CSS classname by adding {.classname} to the end of the text area.

Sent from my iPhone

On Mar 5, 2013, at 1:48 PM, "Emmanouil Batsis (Manos)" <ma...@abiss.gr> wrote:

> 
> IF I understand you correctly you might be able to simply tackle the issue using the right CSS selector to apply styles for external links.
> 
> If links pointing inside the site use URLs not starting with "http" you might want to do something like the following to match external links:
> 
> a[href^="http://"] { color: red; }
> 
> hth,
> 
> Manos
> 
> On 03/05/2013 10:18 AM, Juan Pablo Santos Rodríguez wrote:
>> Hi,
>> 
>> @Ioan: that was exactly what I was trying to avoid, it feels a bit
>> cumbersome to type the whole link instead something like
>> [text][1](.whatevercssclass) or similar
>> 
>> @Shane: yep, had checked also that link, unfortunately, "Special attribute
>> blocks can be used only with headers fenced code blocks." and I was looking
>> to arbitrarily style a given link (btw, the preview pane doesn't like
>> fenced blocks, or is it just me?)
>> 
>> seems I'll stick with inline html, I was puzzled to see that it doesn't
>> seem to be an easy way to put custom styles via markdown :-?
>> 
>> anyway, thanks for the insights
>> 
>> 
>> br,
>> juan pablo
>> 
>> 
>> On Tue, Mar 5, 2013 at 3:30 AM, Shane Curcuru <as...@shanecurcuru.org> wrote:
>> 
>>> See if this helps:
>>> 
>>>   http://michelf.ca/projects/**php-markdown/extra/#spe-attr<http://michelf.ca/projects/php-markdown/extra/#spe-attr>
>>> 
>>> Which is linked from:
>>> 
>>>   http://www.apache.org/dev/**cmsref.html#markdown<http://www.apache.org/dev/cmsref.html#markdown>
>>> 
>>> - Shane
>>> 
>>> 
>>> On 3/4/2013 6:46 PM, Juan Pablo Santos Rodríguez wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> probably is a dumb issue and I'm missing something obvious, but so far, I
>>>> haven't been able to solve it:
>>>> 
>>>> Is there an easy way to tell a markdown link to use a specific css class?
>>>> I'd like to render links pointing outside the incubator site with an
>>>> "external" css class. I know I can write the html equivalent, but that
>>>> feels unnatural, so I'd better avoid that option. I've been poking at a
>>>> few
>>>> site's sources, but haven't had any luck yet..
>>>> 
>>>> 
>>>> thx in advance!
>>>> 
>>>> br,
>>>> juan pablo
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail: general-unsubscribe@incubator.**apache.org<ge...@incubator.apache.org>
>>> For additional commands, e-mail: general-help@incubator.apache.**org<ge...@incubator.apache.org>
> 
> 
> -- 
> Manos Batsis, Chief Technologist
>         __    _
>  ____ _/ /_  (_)_________ ____ ______
> / __ `/ __ \/ / ___/ ___// __ `/ ___/
> / /_/ / /_/ / (__  |__  )/ /_/ / /
> \__,_/_.___/_/____/____(_)__, /_/
>                        /____/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
> For additional commands, e-mail: general-help@incubator.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: Markdown issue

Posted by "Emmanouil Batsis (Manos)" <ma...@abiss.gr>.
IF I understand you correctly you might be able to simply tackle the 
issue using the right CSS selector to apply styles for external links.

If links pointing inside the site use URLs not starting with "http" you 
might want to do something like the following to match external links:

a[href^="http://"] { color: red; }

hth,

Manos

On 03/05/2013 10:18 AM, Juan Pablo Santos Rodríguez wrote:
> Hi,
>
> @Ioan: that was exactly what I was trying to avoid, it feels a bit
> cumbersome to type the whole link instead something like
> [text][1](.whatevercssclass) or similar
>
> @Shane: yep, had checked also that link, unfortunately, "Special attribute
> blocks can be used only with headers fenced code blocks." and I was looking
> to arbitrarily style a given link (btw, the preview pane doesn't like
> fenced blocks, or is it just me?)
>
> seems I'll stick with inline html, I was puzzled to see that it doesn't
> seem to be an easy way to put custom styles via markdown :-?
>
> anyway, thanks for the insights
>
>
> br,
> juan pablo
>
>
> On Tue, Mar 5, 2013 at 3:30 AM, Shane Curcuru <as...@shanecurcuru.org> wrote:
>
>> See if this helps:
>>
>>    http://michelf.ca/projects/**php-markdown/extra/#spe-attr<http://michelf.ca/projects/php-markdown/extra/#spe-attr>
>>
>> Which is linked from:
>>
>>    http://www.apache.org/dev/**cmsref.html#markdown<http://www.apache.org/dev/cmsref.html#markdown>
>>
>> - Shane
>>
>>
>> On 3/4/2013 6:46 PM, Juan Pablo Santos Rodríguez wrote:
>>
>>> Hi all,
>>>
>>> probably is a dumb issue and I'm missing something obvious, but so far, I
>>> haven't been able to solve it:
>>>
>>> Is there an easy way to tell a markdown link to use a specific css class?
>>> I'd like to render links pointing outside the incubator site with an
>>> "external" css class. I know I can write the html equivalent, but that
>>> feels unnatural, so I'd better avoid that option. I've been poking at a
>>> few
>>> site's sources, but haven't had any luck yet..
>>>
>>>
>>> thx in advance!
>>>
>>> br,
>>> juan pablo
>>>
>>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: general-unsubscribe@incubator.**apache.org<ge...@incubator.apache.org>
>> For additional commands, e-mail: general-help@incubator.apache.**org<ge...@incubator.apache.org>
>>
>>
>


-- 
Manos Batsis, Chief Technologist
          __    _
   ____ _/ /_  (_)_________ ____ ______
  / __ `/ __ \/ / ___/ ___// __ `/ ___/
/ /_/ / /_/ / (__  |__  )/ /_/ / /
\__,_/_.___/_/____/____(_)__, /_/
                         /____/

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: Markdown issue

Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi,

@Ioan: that was exactly what I was trying to avoid, it feels a bit
cumbersome to type the whole link instead something like
[text][1](.whatevercssclass) or similar

@Shane: yep, had checked also that link, unfortunately, "Special attribute
blocks can be used only with headers fenced code blocks." and I was looking
to arbitrarily style a given link (btw, the preview pane doesn't like
fenced blocks, or is it just me?)

seems I'll stick with inline html, I was puzzled to see that it doesn't
seem to be an easy way to put custom styles via markdown :-?

anyway, thanks for the insights


br,
juan pablo


On Tue, Mar 5, 2013 at 3:30 AM, Shane Curcuru <as...@shanecurcuru.org> wrote:

> See if this helps:
>
>   http://michelf.ca/projects/**php-markdown/extra/#spe-attr<http://michelf.ca/projects/php-markdown/extra/#spe-attr>
>
> Which is linked from:
>
>   http://www.apache.org/dev/**cmsref.html#markdown<http://www.apache.org/dev/cmsref.html#markdown>
>
> - Shane
>
>
> On 3/4/2013 6:46 PM, Juan Pablo Santos Rodríguez wrote:
>
>> Hi all,
>>
>> probably is a dumb issue and I'm missing something obvious, but so far, I
>> haven't been able to solve it:
>>
>> Is there an easy way to tell a markdown link to use a specific css class?
>> I'd like to render links pointing outside the incubator site with an
>> "external" css class. I know I can write the html equivalent, but that
>> feels unnatural, so I'd better avoid that option. I've been poking at a
>> few
>> site's sources, but haven't had any luck yet..
>>
>>
>> thx in advance!
>>
>> br,
>> juan pablo
>>
>>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: general-unsubscribe@incubator.**apache.org<ge...@incubator.apache.org>
> For additional commands, e-mail: general-help@incubator.apache.**org<ge...@incubator.apache.org>
>
>

Re: Markdown issue

Posted by Shane Curcuru <as...@shanecurcuru.org>.
See if this helps:

   http://michelf.ca/projects/php-markdown/extra/#spe-attr

Which is linked from:

   http://www.apache.org/dev/cmsref.html#markdown

- Shane

On 3/4/2013 6:46 PM, Juan Pablo Santos Rodríguez wrote:
> Hi all,
>
> probably is a dumb issue and I'm missing something obvious, but so far, I
> haven't been able to solve it:
>
> Is there an easy way to tell a markdown link to use a specific css class?
> I'd like to render links pointing outside the incubator site with an
> "external" css class. I know I can write the html equivalent, but that
> feels unnatural, so I'd better avoid that option. I've been poking at a few
> site's sources, but haven't had any luck yet..
>
>
> thx in advance!
>
> br,
> juan pablo
>

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: Markdown issue

Posted by Ioan Eugen Stan <st...@gmail.com>.
Hello Juan Pablo,

Just inline HTML. Markdown allows it. [1]

[1] http://daringfireball.net/projects/markdown/syntax#html

Regards,

-- 
Ioan Eugen Stan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org