@chumido I do not know the CSS code you are using, but this works for me:
/* Tag pills in edit mode */
.CodeMirror-line span.cm-hashtag-begin {
background-color: var(--yellow59);
color: white !important;
border-top-left-radius: 4px; /* PB changed from 15 to go from rounded to rectangle */
border-bottom-left-radius: 4px; /* PB changed from 15 to go from rounded to rectangle */
padding-left:6px;
padding-top: 1px;
border-right:none;
display: inline-block;
text-decoration: none;
font-size: 14px;
}
.CodeMirror-line span.cm-hashtag-end {
background-color: var(--yellow59);
color: white !important;
border-top-right-radius: 4px; /* PB changed from 15 to go from rounded to rectangle */
border-bottom-right-radius: 4px; /* PB changed from 15 to go from rounded to rectangle */
padding-right:6px;
padding-bottom: 1px;
border-left:none;
display: inline-block;
text-decoration: none;
font-size: 14px;
}
You might have to change the font size and paddings. Changing the border radius will affect the shape of the tage from a pill, as per your screenshot, to more rectangular, or to circular/disk-shaped.