►
From YouTube: Creating your own Tag Helpers
Description
Taylor Mullen shows us how to create custom Tag Helpers. The TagHelper that was added in the show was the Markdown TagHelper. It enables you to write Markdown in your Views.
Here's the repo for this episode: https://github.com/CodeConversations/Tag-Helper-with-Taylor-Mullen
A
B
A
B
A
B
A
A
B
B
B
B
A
B
Really
going
on
here,
but
I
think
it'd
be
great
if
we
could
simplify
some
of
the
code
that
is
going
on
in
this
template
all
right.
We
have
a
lot
of
links
down
here
and
when
you
look
at
one
of
these
links,
we
can
actually
open
this
up
real
quickly
go
to
index.
These
links
are
a
little
verbose
here,
so
you
don't
always
need
all
this
information,
so
I
guess
I.
Look
at
Bower
one,
for
example.
Here
imagine
this
bower
was
simply
for
these
square
brackets,
and
this
was
the
context
of
our
link.
B
A
B
B
This
is
actually
super
small
and
simple,
really
cool
so
by
default.
This
is
what
a
toggle
/
is,
so
we
have
an
HTML
target
element.
This
tells
you
what
tag
do
you
want
to
run
your
c-sharp
on?
Okay,
I'm.
So,
in
our
case,
let's
just
say:
markdown
now,
if
I
didn't
have
this
tag,
I'd
was
like
this.
The
convention
would
be
just
everything
before
the
tag.
A
B
B
B
A
B
B
Right,
okay,
so
markdown.
So
by
adding
this,
we
actually
will
enable
a
tag
called
markdown.
I
first
need
to
add
tag,
culprit,
so
I'm
going
to
add
tag
for
every
tag
helper
in
my
creating
your
own
tag.
Calpers
assembly
next,
by
having
us
I,
should
be
able
to
go
over
here
and
write
a
markdown
tag.
Obviously
right.
B
A
B
A
B
You
can
use
either
one
that's
added
by
this
nice
tag,
upper
class
that
we
have.
This
is
for
you,
drink
east
synchronous,
behavior,
so
just
kind
of
step
by
this
line
by
line
first
off
our
tag
name
is
markdown.
No,
we
don't
want
to
render
the
markdown
tag
on
our
output
because
it
doesn't
do
anything
yeah.
A
A
B
A
A
B
A
B
A
A
B
A
A
B
A
B
They've
done
a
great
job
of
making
this
available
for
everyone
and
making
it
super
easy
to
take
regular
text
and
just
transform
it
into
markdown
that
they
get
up
appreciate
where
Stack
Overflow
appreciates.
So,
if
I
search
common
mark
here,
I
see
common
mark
net
and
I
can
just
install
it,
it's
really
quick,
quite
a
small
package.
Here,
click
accept
and
then
I'll
have
my
package
over
here.
So
I
can
go
back
to
our
markdown
tag.
B
Helper,
add
the
using
for
it
and
I'm
now
taking
a
string
fide
content
yet
converting
it
getting
our
transformed
and
the
very
last
step
after
all,
that's
been
done
is
we
need
to
now
replace
any
content
that
is
in
the
middle,
so
close
this
guy
out.
All
this
content
is
to
be
replaced
with
its
new
HTML.
A
B
B
B
I
have
seen
people
make
templates,
make
grids,
people
love
this
markdown
one.
They
have
taken
this
and
tried
to
productionize
it
make
it
usable
everywhere.
I've
seen
people
take
random,
different
languages
or
take
typescript
yeah
and
script
tags
and
then
actually
translate
the
types
of
files
on
the
fly.
Wow.
A
B
Think
the
opportunities
are
endless:
ser
Alton's,
guys
really
cool.
So
this
is
one
way
how
to
get
content
in
direct
a
go
yeah,
not
a
ton
of
time
to
go
over
all
the
various
ways.
There's
a
lot
out
there,
though
you
can
take
in
things
from
a
shoot
by
adding
properties.
If
we
want
to
so
I
could
add
in
like
say
a
string
property
foo,
yeah.
A
B
A
A
B
Advice
yeah,
so
I
feel
like
our
MBC
tag,
helpers
that
we
have.
These
guys
are
actually
over
at
github
at
C
net
10
BC
source
NBC
tag
helpers.
These
are
basically
everything
toggle
burs
can
do
it
more.
Oh
wow
there's
a
lot
here
so
we're
looking
at
our
form
tag
over
in
our
last
talk
and
we
can
see
all
the
valve
like
they
see
all
of
our
form
tag
over
stuff
in
our
HTML
target
elements.
Just
like
we
were
just
yeah.