-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from AyshaHakeem/feat-markdown-editor
fix: fix errors, undo escaped code content in previous commit
- Loading branch information
Showing
8 changed files
with
50 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,16 @@ | |
app_email = "[email protected]" | ||
app_license = "MIT" | ||
|
||
add_to_apps_screen = [ | ||
{ | ||
"name": "wiki", | ||
"logo": "/assets/wiki/images/wiki-logo.png", | ||
"title": "Wiki", | ||
"route": "/app/wiki", | ||
# "has_permission": "erpnext.check_app_permission", | ||
} | ||
] | ||
|
||
page_renderer = "wiki.wiki.doctype.wiki_page.wiki_renderer.WikiPageRenderer" | ||
|
||
website_route_rules = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
wiki/wiki/doctype/wiki_page/patches/update_escaped_code_content.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import frappe | ||
|
||
|
||
def execute(): | ||
wiki_pages = frappe.db.get_all("Wiki Page", fields=["name", "content"]) | ||
for page in wiki_pages: | ||
markdown_content = ( | ||
page["content"] | ||
.replace("`", "`") | ||
.replace("${", "${") | ||
.replace(">", ">") | ||
.replace("<", "<") | ||
) | ||
frappe.db.set_value("Wiki Page", page["name"], "content", markdown_content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters