What about specifying the lines in the fence?
Some existing parsers, such as Python Markdown [1], use a “hl_lines” option after the language. Example:
```cpp hl_lines=3
#include <string>
int foo;
string bar; // Highlight this line
[1] https://pythonhosted.org/Markdown/extensions/fenced_code_blocks.html#emphasized-lines