Skip to content

Commit

Permalink
use build in markdown renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 26, 2024
1 parent 2e9dce6 commit af9f92d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions api/parsers/MarkdownParser.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ component {

public any function init() {
variables.flexmark = false; //experimental https://luceeserver.atlassian.net/browse/LD-109
_setupMarkdownProcessor();
//_setupMarkdownProcessor();
_setupNoticeBoxRenderer();

return this;
}

public string function _markdownToHtml( required string markdown, required boolean stripParagraph=false) {
if (variables.flexmark){
if (true){
var html = markdownToHtml( arguments.markdown );
} else if (variables.flexmark){
var processor = _getMarkdownProcessor();
var doc = processor.parser.parse(arguments.markdown);
var html = processor.renderer.render( doc );
Expand Down
4 changes: 2 additions & 2 deletions api/reference/FunctionReferenceReader.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ component accessors=true {
// load java tags
variables.extensionMap = {};
var cfg = getPageContext().getConfig();
var flds = cfg.getCombinedFLDs(1);
var ff = flds.getFunctions()
var flds = cfg.getFLDs();
var ff = flds.getFunctions();
for (var fname in ff){
var bi = bundleInfo( ff[fname].getBIF() );
if ( bi.name != "lucee.core" ) {
Expand Down
2 changes: 1 addition & 1 deletion api/reference/TagReferenceReader.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ component accessors=true {
// load java tags
variables.extensionMap = {};
var cfg = getPageContext().getConfig();
var tlds = cfg.getTLDs(1);
var tlds = cfg.getTLDs();
//dump(tlds); abort;
var tags = tlds[1].getTags();
//dump(tags); abort;
Expand Down
2 changes: 1 addition & 1 deletion serve.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set CWD=%cd%
set LUCEE_EXTENSIONS="60772C12-F179-D555-8E2CD2B4F7428718;version=3.0.0.44-RC"

box stop name=luceedocslocalserver
box start name=luceedocslocalserver directory=%CWD%/server/ force=true rewritesEnable=true rewritesConfig=%CWD%/server/urlrewrite.xml port=4040 trayIcon=%CWD%/luceelogoicon.png heapSize=2048 cfengine="lucee@5"
box start name=luceedocslocalserver directory=%CWD%/server/ force=true rewritesEnable=true rewritesConfig=%CWD%/server/urlrewrite.xml port=4040 trayIcon=%CWD%/luceelogoicon.png heapSize=2048 cfengine="lucee@be" --verbose --console

0 comments on commit af9f92d

Please sign in to comment.