Pearson scored into an empty net at 18:50 for the 5-2 final.
"We play for each other, we play for the guy next to you, and we've got to keep doing that," Markstrom said.
Hertl gave the Sharks a 1-0 lead with his 16th goal at 4:15 of the first period before leaving with an apparent right leg injury at 6:17.
"That's not something you like to see," Sharks defenseman Erik Karlsson said. "He's been playing good for us lately. He's a big part of this team, especially with [Logan Couture] out."
Hertl, San Jose's representative at the NHL All-Star Game on Saturday, went into the end boards with Vancouver defenseman Chris Tanev.
"He's a huge part of this team," Goodrow said. "But we've dealt with that all year. When one guy goes down another guy steps up."