Yes, that’s the right idea, but you can do that in your functions.php file without having to alter the plugin. That way you won’t need to alter the plugin every time it’s updated.
Look for this line just before you’ve made those changes:
$excerpt = apply_filters( 'wp_discourse_excerpt', $raw );
This lets you create a function in your functions.php file that will be passed the raw content of your post. Something like this should work:
add_filter( 'wp_discourse_excerpt', 'my_namespace_fix_shortcodes' );
function my_namespace_fix_shortcodes( $excerpt ) {
$excerpt = str_replace( '[nk_title]', '<h2>', $excerpt );
$excerpt = str_replace( '[/nk_title]', '</h2>', $excerpt );
$excerpt = str_replace( '[yp_text]', '<p>', $excerpt );
$excerpt = str_replace( '[/yp_text]', '</p>', $excerpt );
$excerpt = preg_replace('(\\[([^[]|)*])', '', $excerpt );
return $excerpt;
}