Prettify markdown in docs in v8.1.x (#37647)

This commit is contained in:
Connor Lindsey
2021-08-06 09:20:26 -06:00
committed by GitHub
parent b3570b823d
commit 45c67c5b82
304 changed files with 3230 additions and 2994 deletions
@@ -13,9 +13,7 @@ By adding a help component to your plugin, you can for example create "cheat she
import { QueryEditorHelpProps } from '@grafana/data';
export default (props: QueryEditorHelpProps) => {
return (
<h2>My cheat sheet</h2>
);
return <h2>My cheat sheet</h2>;
};
```
@@ -62,7 +60,7 @@ By adding a help component to your plugin, you can for example create "cheat she
{item.expression ? (
<div
className="cheat-sheet-item__example"
onClick={e => props.onClickExample({ refId: 'A', queryText: item.expression } as DataQuery)}
onClick={(e) => props.onClickExample({ refId: 'A', queryText: item.expression } as DataQuery)}
>
<code>{item.expression}</code>
</div>