mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
Clean up some bugs in markdown widget
This commit is contained in:
parent
c181b11f87
commit
9fffa07d48
5 changed files with 4 additions and 10 deletions
|
|
@ -20,4 +20,4 @@ Cloud dependent.
|
|||
|
||||
### References
|
||||
|
||||
Gao, Bo-Cai (1996). "NDWI—A normalized difference water index for remote sensing of vegetation liquid water from space" (PDF). Remote Sensing of Environment. [doi:10.1016/S0034-4257(96)00067-3](https://doi.org/10.1016%2FS0034-4257%2896%2900067-3)
|
||||
Gao, Bo-Cai (1996). "NDWI—A normalized difference water index for remote sensing of vegetation liquid water from space" (PDF). Remote Sensing of Environment. doi:10.1016/S0034-4257(96)00067-3. [View Article](https://doi.org/10.1016%2FS0034-4257%2896%2900067-3)
|
||||
|
|
|
|||
|
|
@ -27,4 +27,4 @@ Currently tested on data from Brazil.
|
|||
|
||||
### References
|
||||
|
||||
1. [S. Boles and D. L. Verbyla, “Comparison of three AVHRR-Based fire Detection Algorithms for Interior Alaska,” Remote Sensing of Environment, vol. 72, no. 1, pp. 1–16, Apr. 2000, doi: 10.1016/s0034-4257(99)00079-6.](https://doi.org/10.1016/S0034-4257(99)00079-6)
|
||||
1. S. Boles and D. L. Verbyla, “Comparison of three AVHRR-Based fire Detection Algorithms for Interior Alaska,” Remote Sensing of Environment, vol. 72, no. 1, pp. 1–16, Apr. 2000, doi: 10.1016/s0034-4257(99)00079-6. [View Article](https://doi.org/10.1016/S0034-4257(99)00079-6)
|
||||
|
|
|
|||
|
|
@ -77,16 +77,12 @@ namespace widgets
|
|||
|
||||
MarkdownHelper::MarkdownHelper()
|
||||
{
|
||||
}
|
||||
|
||||
void MarkdownHelper::init()
|
||||
{
|
||||
mdConfig.linkCallback = link_callback;
|
||||
mdConfig.imageCallback = image_callback;
|
||||
}
|
||||
|
||||
void MarkdownHelper::render()
|
||||
{
|
||||
mdConfig.linkCallback = link_callback;
|
||||
mdConfig.imageCallback = image_callback;
|
||||
mdConfig.headingFormats[0] = {style::bigFont, true};
|
||||
mdConfig.headingFormats[1] = {style::bigFont, true};
|
||||
mdConfig.headingFormats[2] = {style::baseFont, true};
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ namespace widgets
|
|||
|
||||
public:
|
||||
MarkdownHelper();
|
||||
void init();
|
||||
void render();
|
||||
void set_md(std::string md);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ namespace satdump
|
|||
std::ifstream ifs(resources::getResourcePath("credits.md"));
|
||||
std::string credits_markdown((std::istreambuf_iterator<char>(ifs)), (std::istreambuf_iterator<char>()));
|
||||
credits_md.set_md(credits_markdown);
|
||||
credits_md.init();
|
||||
|
||||
registerApplications();
|
||||
registerViewerHandlers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue