nicoespeon / gitgraph.js

[ARCHIVED] A JavaScript library to draw pretty git graphs in the browser
https://www.nicoespeon.com/gitgraph.js
MIT License
3.02k stars 363 forks source link

Highlight the specific word in the line. #428

Closed johnjw12 closed 3 months ago

johnjw12 commented 1 year ago

can we highlight a word in the line.

" Adding new feature in my "gitgraph" --> bold (gitgraph)

johnjw12 commented 1 year ago

@nicoespeon @fabien0102, could you please check

nicoespeon commented 1 year ago

Hey @johnjw12 👋

We are not maintaining this lib anymore, so I may be rusty to help here. I'm also not sure which lib (js, react) and version you are using. But I remember you can pass custom renderers.

Examples with gitgraph-js: https://www.nicoespeon.com/gitgraph.js/stories/?path=/story/gitgraph-js-6-custom-renders--with-render-message

https://github.com/nicoespeon/gitgraph.js/blob/c52e64e81966c22cb024f69a2fd64335ea0c67e6/packages/stories/src/gitgraph-js/6-custom-renders.stories.tsx#L156

Examples with gitgraph-react: https://www.nicoespeon.com/gitgraph.js/stories/?path=/story/gitgraph-react-6-custom-renders--with-render-message

https://github.com/nicoespeon/gitgraph.js/blob/c52e64e81966c22cb024f69a2fd64335ea0c67e6/packages/stories/src/gitgraph-react/6-custom-renders.stories.tsx#L115

Therefore, you should be able to highlight and customize what's being rendered as you like!