diff --git a/src/main.tsx b/src/main.tsx index fff6f7b..b12fb6b 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -9,7 +9,6 @@ import { jsPDF } from "jspdf"; import html2canvas from "html2canvas"; import markdownMark from "markdown-it-mark"; - const propertyOptions = [ "Hide Page Properties", "Hide Brackets", @@ -76,7 +75,7 @@ export function downloadPDF() { // var getContent = "
", "
•")
- }
- else(final4String = final4String.replaceAll(" ", " "))
+ if (logseq.settings[templateName + "Options"].includes("Hide Bullets")) {
+ final4String = final4String.replaceAll(" ", " •");
+ } else final4String = final4String.replaceAll(" ", " ");
handleClosePopup();
renderApp(final4String);
});
@@ -212,7 +206,6 @@ function parseBlocksTree(obj) {
}
}
const main = async () => {
-
logseq.App.registerUIItem("toolbar", {
key: "logseq-plugin-react-boilerplate",
template:
@@ -220,14 +213,15 @@ const main = async () => {
});
logseq.provideModel({
show() {
- // renderApp('logseq')
- // logseq.showMainUI()
- // createPDF()
- renderSecondApp();
- logseq.showMainUI();
- handleClosePopup();
+ initializeApp();
},
});
+
+ function initializeApp() {
+ renderSecondApp();
+ logseq.showMainUI();
+ handleClosePopup();
+ }
function renderSecondApp() {
ReactDOM.render(